MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.99k stars 527 forks source link

Implement a unit test for `receipt_chain_hash` #15128

Open georgeee opened 7 months ago

georgeee commented 7 months ago

Implement a unit test that would:

  1. Take binaries for two branches
  2. Launch the network from the first branch, send some transactions and then do the ledger export
  3. Launch the network from the second branch with the same genesis ledger, send the same transactions and do the ledger export
  4. Check equality of exported ledgers (with BP accounts being withheld from comparison)
georgeee commented 1 week ago

I don't think we have such a test, and between Mainnet Original and Berkeley this test would fail. So I believe such a test is useful, and we don't have one as of now.