I created a custom altcoin for research purposes.
After I compiled the code, I created two test nodes. Both nodes accepted the genesis block.
I created blocks for the first node using generatetoaddress RPC command.
The first node successfully created and accepted the block. The second node contains only the genesis block.
In both nodes getblocktemplate returns this error:
error code: -10
error message:
Bitcoin Core is in initial sync and waiting for blocks...
What I did wrong?