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.97k stars 523 forks source link

Archive script needed for emergency hardfork #15622

Closed dkijania closed 1 month ago

dkijania commented 1 month ago

Archive script for emergency hf which converts all pending blocks which are ancestors of fork point block. All the other pending blocks should be converted to orphaned

dkijania commented 1 month ago

!ci-build-me

dkijania commented 1 month ago

!ci-build-me

dkijania commented 1 month ago

!ci-build-me

ghost-not-in-the-shell commented 1 month ago

For the migrated database we should keep the blocks from previous chain (blocks with protocol_version = 2 in this emergency hard fork for example) to be still canonical. Is this the case for your script?

dkijania commented 1 month ago

@ghost-not-in-the-shell I think this is covered by this test case:

https://github.com/MinaProtocol/mina/pull/15622/files#diff-6612dcb6e27729a52fe9ac1654b373ea18c13b28245a21e0f426ce1e6ce0d024R20

dkijania commented 1 month ago

!ci-build-me

mrmr1993 commented 1 month ago

!approved-for-mainnet