Episode 36 - Anatomy of a Blockchain Node

Episode 36 - Anatomy of a Blockchain Node

Blockchains are peer to peer network of nodes. These nodes connect with each other and come to consensus on the state of the blockchain. All these nodes are basically computers running the blockchain node software. Let’s look at all the components of a blockchain node that come together to make it all possible.

* Storage: This is the most basic component of the blockchain node. This is where the state of the blockchain is stored. In general, this is simply a database optimized for blockchain use-cases. All the Merkle tree logic and related functions are implemented in the storage component of the blockchain node.

* Networking: Using the networking component, the nodes connect with each other and pass messages. Without the networking component, there would be no network, and there would be no consensus. This component is mainly comprised of two sub-components — discovery and message passing. Using discovery, the nodes find and connect with their close peers, and using messaging they pass information required for sharing state and voting on consensus.

* Consensus: The consensus engine is responsible for getting agreement on the state of the blockchain among all the nodes. All the logic about PoW, PoS, etc. is implemented in the consensus algorithm. In general, the consensus algorithm is responsible for finding which node would produce the next block of whose block would be accepted, and getting the votes from all peers on the validity of the block.

* Transaction Queue: When a user submits a transaction to a blockchain node, and before this transaction is included in a block, it is temporarily stored in the transaction queue on the node for initial validation checks. The nodes also share these transactions with other nodes, so that any node could propose them in the next block as per the rules. Transaction queue is also knows as the mem-pool.

* Node API: The node API is the user facing API that is used by users and applications to interact with the blockchain nodes. When the users submit a transaction, they use this API. The API is also used for several other purposes like reading the state, etc. Without an API, the users and apps won’t be able to interact with the blockchain.

* State Transition Function (STF): The STF of a blockchain is the most important component and it represents the core business logic of the blockchain. In the STF, all the rules about processing of transactions and their execution are implemented. The state of the blockchain is updated based on these rules written in the STF. For example, in the Bitcoin blockchain, the STF implements the logic about transfer of bitcoins from one account to other(s) when the users submit transactions.



This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit podcast.blockshots.net

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(116)

Episode 116 - Parallel Execution in Blockchains

Episode 116 - Parallel Execution in Blockchains

Traditionally blockchains execute transactions sequentially. Some of the newer chains have been trying parallel execution of transactions to improve blockchain performance. In this episode we understa...

15 Apr 20243min

Episode 115 - Real World Asset Tokenisation

Episode 115 - Real World Asset Tokenisation

In this episode we understand what are real world assets and why they are being tokenised. What are real world assets?Any thing of value that has been generated or created in the real world before bei...

8 Apr 20244min

Episode 114 - The Dencun Upgrade

Episode 114 - The Dencun Upgrade

After a brief break, we are back with new episodes.Ethereum recently upgraded to a new update called Dencun. In this episode we understand what this update is and how it is important.9 different updat...

1 Apr 20244min

Episode 113 - What is Restaking?

Episode 113 - What is Restaking?

Restaking is staking of already staked tokens. But how is the possible?If tokens are staked for one purpose — providing econoimic security for consensus of a network — they could be further staked to ...

12 Feb 20243min

Episode 112 - Modular Blockchains

Episode 112 - Modular Blockchains

Modular blockchains has been one of the buzz words in the last year. In this episode, let’s understand modularity in blockchains.In the beginning, consensus and execution were part of the same blockch...

5 Feb 20244min

Episode 111 - What are Altcoins?

Episode 111 - What are Altcoins?

In this episode, we understand what are altcoins?Altcoin was first used for any coin other than bitcoin. But the definition has evolved a bit among different circles in the crypto land. Listen to the ...

29 Jan 20242min

Episode 110 - Orphan or Uncle Blocks

Episode 110 - Orphan or Uncle Blocks

In this episode, we understand what are orphan or uncle blocks. This is more of a Proof of Work related concept where two blocks are produced at the same time. One of them becomes part of the chain - ...

23 Jan 20243min

Episode 109 - On-chain vs Off-chain Governance

Episode 109 - On-chain vs Off-chain Governance

In this episode, we understand the two ways of doing blockchain governance - on-chain and off-chain.When the decisions to update the blockchain software are driven by processes off the chain (online f...

15 Jan 20243min

Populært innen Teknologi

lydartikler-fra-aftenposten
romkapsel
teknisk-sett
energi-og-klima
tomprat-med-gunnar-tjomlid
elektropodden
nasjonal-sikkerhetsmyndighet-nsm
hans-petter-og-co
shifter
pedagogisk-intelligens
rss-anleggspraten
teknologi-og-mennesker
rss-snakk-om-sikkerhet
rss-plateprat
rss-ai-forklart
fornybaren
rss-digitaliseringspadden
rss-30-minutter-inn-i-fremtiden
rss-alt-som-gar-pa-strom
rss-heis