Step 1: I'm running "Local Private Ethereum Network". And have two local nodes. Node2 is attached to Node1. I started mining in Node1 and it was successful.
INFO [01-11|18:37:01] Successfully sealed new block number=1 hash=176552…694cb6 INFO [01-11|18:37:01] 🔨 mined potential block number=1 hash=176552…694cb6
But, node2 gives the error below:
WARN [01-11|18:37:01] Discarded bad propagated block number=1 hash=176552…694cb6
Since node1 successfully created a NEW BLOCK, I expect node2 'to accept' it.
But, node2 gives error like above.
Step 2: Restarted node2, and re-attached the node2 to node1. Now the previously mined-but-discarded-block was 'imported successfully'.
Step 3: Initiated mining on node2. node2 successfully mined a block. But, this time, the newly mined block was discarded by node1. Restarted node1. Re-attached node2 to node1. Previously mined-but-discarded-block was imported successfully. So, there is a pattern that 'the newly mined blocks are not imported immediately. But, are imported only after the restart of the peer node - which discarded it'.
How to make the peer nodes synchronize automatically and import the newly mined blocks on the fly?