Coin Brief ENDE

Keep the way back open until the new state has proven itself

Several of this week's protocol changes share a habit that is easy to state and harder to keep: do not destroy the old state until the new one is known to be good.

Bitcoin Core's pull request 34193 applies it to wallet migration. Until now a failure while converting a legacy wallet to SQLite could leave the user to repair things by hand. After the change the original database stays untouched and is only updated once the new SQLite database has been created in full, and failures elsewhere in the migration are caught so the original wallet can be restored automatically. The old wallet is the way back, and the change makes sure it still exists when it is needed.

EIP-8252 applies it to Ethereum's chain state. Its two edits on 28 and 29 November say that an execution client must be able to process a reorg back to the last finalized block by rebuilding state locally, and the second edit adds the detail that matters: the post-state of the finalized block itself must be kept, because a reorg can fork exactly there. Everything below it may go. The rule keeps exactly the state a client might have to return to, and no more.

Keep the way back open until the new state has proven itself
Keep the way back open until the new state has proven itself — Coin Brief

SIMD-0506 applies it to a library change. Rather than putting Agave's switch from libsecp256k1 to k256 behind a network-wide feature gate, the team will compare the two libraries with differential fuzzing and then run a non-voting validator with the new one before shipping. The old library stays the reference until the new one has matched it on the same inputs, first in tests and then on a validator that does not vote.

Polkadot's stable2603-9 patch fits the same pattern on a smaller scale. An XCMP notification is now marked as sent only when it actually fits the HRMP channel; otherwise it waits. A record that says done before the work is done is the opposite of a way back.

What links these cases is not caution for its own sake. Each change moves a commit point to the moment after verification: the database write after the SQLite file is complete, the pruning line at finality, the library swap after the comparison, the sent flag after the send. Software that marks something final too early leaves users with no state to return to, and these fixes all move that mark later.