Skip to main content

Blockchain Node

Blockchain nodes are network stakeholders and their devices that are authorized to keep track of the distributed ledger and serve as communication hubs for various network tasks. A blockchain node’s primary job is to confirm the legality of each subsequent batch of network transactions, known as blocks.

A blockchain exists out of blocks of data. These blocks of data are stored on nodes (compare it to small servers). Nodes can be any kind of device (mostly computers, laptops or even bigger servers). Nodes form the infrastructure of a blockchain. All nodes on a blockchain are connected to each other and they constantly exchange the latest blockchain data with each other so all nodes stay up to date. They store, spread and preserve the blockchain data, so theoretically a blockchain exists on nodes. A full node is basically a device (like a computer) that contains a full copy of the transaction history of the blockchain.

What do nodes do?

When a miner attempts to add a new block of transactions to the blockchain, it broadcasts the block to all the nodes on the network. Based on the block’s legitimacy (validity of signature and transactions), nodes can accept or reject the block. When a node accepts a new block of transactions, it saves and stores it on top of the rest of the blocks it already has stored. In short, here is what nodes do:

  • Nodes check if a block of transactions is valid and accept or reject it.
  • Nodes save and store blocks of transactions (storing blockchain transaction history).
  • Nodes broadcast and spread this transaction history to other nodes that may need to synchronize with the blockchain (need to be updated on transaction history).

 

The difference between a miner and a node

A miner always needs to run a full node in order to select valid transactions to form a new block. Without a full node it cannot determine what proposed transactions are valid according to the current blockchain’s transaction history (aka if all balances involved in the transactions are sufficient enough to perform the proposed transactions), because it does not have access to the full blockchain history. Therefore, a miner is always also a full node. A node however, is not necessarily simultaneously a miner. A device can run a full node by receiving, storing and broadcasting all transaction data (much like a server) without actually creating new blocks of transactions itself. In this case it functions more like a pass point with a directory, whereas a miner is the same but simultaneously tries to create new blocks of transactions as well.

Definition of a node in blockchain: A full node is a full copy of the blockchain transaction history on any device.

How nodes secure the blockchain

Nodes can be online or offline. Online nodes are receiving, saving and broadcasting all the latest blocks of transactions from and to other nodes, while offline nodes do not. When an offline node comes back online, it will need to catch up with the rest of the blockchain first by downloading all blocks that were added to the blockchain ever since the node went offline. This process is often referred to as synchronizing with the blockchain.

An entire blockchain can theoretically run on a single node, but since it would be stored on only a single device, it would be extremely vulnerable to things like power outages, hackers or systemic crashes. The more full nodes a blockchain is running on, the better its resilience against such catastrophes is. When the blockchain data is spread across so many devices, it will be very hard for a corrupt entity to wipe out all this data at once. Even if a large number of nodes suddenly goes offline and becomes inaccessible because of a global crisis, a single node can theoretically keep an entire blockchain operational. And even if all nodes go offline, it only takes one node with the full blockchain history to come back online to make all the data accessible again.

Who can run a node?

Some blockchains have thousands of nodes simultaneously online. Anyone can run a node by simply downloading the transaction history of a blockchain. Many crypto and blockchain enthusiasts are running nodes voluntarily. They do this to contribute to a blockchains community, its development, security and integrity, but also simply because it’s their hobby and makes them feel part of the project. Running a node is considered fairly simple for someone slightly tech savvy, and does not require a lot of resources. Some blockchains however, now contain such a large amount of transaction data that it actually requires a lot of memory on a device to run a full node. Many crypto users who just want to use a blockchain therefore use wallet applications. These applications allow them to broad- cast transactions from their wallet without being required to download the entire blockchain history on their own device.

What are masternodes?

And finally, some blockchains also feature masternodes. Masternodes are usually heavier equipped than normal nodes. Next to validating, saving and broadcasting transactions, masternodes sometimes also facilitate other events on the blockchain dependent on their nature, such as governing voting events, providing execution of protocol operations and enforcing the laws of the according blockchain. Masternodes are generally always online (24/7), and facilitate much more memory than normal nodes. You could say a masternode is like hosting a very large server on the network. Because hosting a masternode usually requires much more resources (electricity, up-time, mainte- nance, storage space, memory), hosting one generally provides payment in the form of interest.

 

Who can run a masternode?

Not just anyone can run a masternode though. The power of controlling a masternode can be abused, and therefore it requires the host to deposit a minimum (often quite large) amount of crypto as collateral. This collateral is taken hostage when the masternode host violates the rules of the blockchain. The interest rate a masternode host receives is calculated over their collateral deposit.

How does it work?

Smart Node software can be purchased and installed on any personal computer. Some nodes can be installed and operated on a virtual private server (VPS).

Smart Nodes are used by the blockchain to perform required functions dictated by a smart contract. Functions can vary from one blockchain to another. They may include storage, data analysis, file sharing, computations and confirmations.

Anyone can operate a node. If you are considering purchasing and operating a blockchain node, there are a couple of things you should consider:

  1. Purpose + Mission Consider the purpose and mission of the blockchain. Many current blockchain projects do not necessarily have a well-defined purpose. Others are committed to certain objectives and provide a clearly-defined purpose. Community members create a set of strategic objectives and write them into the smart contract that governs the blockchain.It is important that you support the underlying purpose of the blockchain you will be operating a node to support.
  2. Operating Requirements Operating a node requires you to purchase, install and operate the software continuously. Before you purchase, be sure you understand the system requirements, hardware, connectivity and other requirements. Some blockchains measure your daily contributions—meaning how often your node is actively communicating with the network. Be sure to have a plan of action for operating your node.
  3. Distribution Model
    Before you purchase node software, make sure you understand the blockchain distribution model. The more you understand, the more you can actively maximize your rewards.

Soft nodes must be continuously operated in order to ensure substantial decentralization. While most blockchains do offer a free or nearly free node, licensed nodes perform more functions and typically earn greater rewards.