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?
purge-chainafter adding the GRANDPA keys, but you do need to restart both nodes. Did you restart the nodes after adding the GRANDPA keys? Before you do this, the nodes will author blocks but not finalize them. - Dan Forbesctrl cin the terminal to stop the nodes and then ran the same commands as in the beginning to start the nodes again, but still, the blocks were not being finalized. Does that count as a restart or am I doing something very stupid? :D - beqaabu