json rpc – RPC getblockstats call using genesis block

0
5


This occurs because the genesis block is a special block. It is not written to disk like all other blocks are. It cannot be undone so there is no undo data for it. getblockstats uses the undo data (essentially a compact representation of the UTXOs spent by the transactions in a block) to calculate many of the block stats, but because the genesis block does not have undo data, you see this error.

The error could be improved, or a special case added for the genesis block. Regardless, this error is because of how the RPC is implemented, not with your nodes.



Source link

Leave a reply