substrateparitypolkadotprivate-network

Blocks are not being finalized in a private network


I am following the tutorial on running a basic 2 node private network in substrate. I have used subkey to generate aura and grandpa keys for both of the nodes and added the keys to keystore.

I thought I did everything correctly, both of the nodes are running and producing the blocks but the blocks are not being finalized. I am not sure what is the problem, aura keys are responsible for block production and grandpa keys are responsible for block finalization, aura keys are clearly working, because the blocks are produced, so I suspect there is something wrong with grandpa keys, but the process of adding the keys is practically identical for both aura and grandpa, so I don't understand why is it working for one and not working for another.

I purged the chain using the purge-chain command after I added both pairs of keys to restart the nodes, but the blocks were not still being finalized.

Also, I am using a single Linux machine to run both nodes in separate terminal windows, I don't know if that might be an issue. Any ideas?


Solution

  • using the terminal to add the keys to Keystore did not work for whatever reason, but you can add the keys using the polkadot.js.org/apps interface, and the blocks work fine after that, they are being produced and finalized. that step is discussed in the tutorial itself, but it is said that its not the most secure way to add the keys