Kagome
Polkadot Runtime Engine in C++17
|
In this tutorial we will learn how to start a blockchain network with a validator and block producing nodes
First go to tutorial's folder:
First we execute validating node in the similar way we did it during previous tutorial. This node will produce and finalize blocks.
To start with let's navigate into the node's folder:
Now that validating node is up and running, second node can join the network by bootstrapping from the first node. Command will look very similar.
Second node passes several steps before actual block production begins:
Because these two nodes are running on the same machine, second node must be specified with different port numbers
Note that both nodes have the same hash of block 0: 2b32173d63796278d1cea23fcb255866153f07700226f3d7ba348e25ae7f9d29
Syncing node cannot participate in either block production or block finalization. However, it can connect to the network and import all produced blocks. Besides that, syncing node can also receive extrinsics and broadcast them to the network.
To start syncing node kagome
binary is used as follows:
Note that trie root is the same with validating nodes. When syncing node receives block announcement it first synchronizes missing blocks and then listens to the new blocks and finalization.
Like in previous tutorial we will send transfer from Alice to Bob to check that transaction was applied on every node.
We can send transaction on any of the node, as it will be propagated to the block producing nodes and stored in their transaction pools until transactions is included to the block: