Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
18 stars 10 forks source link

Favour chain Id over genesis state hash to add network uniqueness to the staking ledgers persistence #1222

Open trevorbernard opened 2 months ago

trevorbernard commented 2 months ago

Currently we append the genesis state hash to uniquely identify the staking ledgers but better would be to use the current chainId.

robinbb commented 1 month ago

Did the chainId change upon hard fork?

trevorbernard commented 1 month ago

Did the chainId change upon hard fork?

Yes, it's generated from the networks genesis constants and a timestamp.

Also, I believe that's how MinaExplorer and the Mina Payout Scripts handle it