Repository navigation
Restore canonical Beacon state without stale history - #87
Draft
0x00101010 wants to merge 7 commits into
Draft
0x00101010 wants to merge 7 commits into
0x00101010 wants to merge 7 commits into
Conversation
Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a10d69-00b6-7378-855f-af2b1a148692
Clearing the fork database drops cached block hashes, so BLOCKHASH(F) was refetched from the upstream's current canonical chain instead of the dump's fork identity. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a10d69-00b6-7378-855f-af2b1a148692 Co-authored-by: Amp <amp@ampcode.com>
A Beacon load replaces state, so taking the maximum with the upstream nonce resurrected nonces deliberately set below it. Legacy loads keep merging. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a10d69-00b6-7378-855f-af2b1a148692
Loading a dump taken at the fork block derived fees from the upstream fork header, ignoring an explicit base fee the uninterrupted chain used. Fork setup now records the successor fee inputs, which boundary loads restore without an upstream request. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a10d69-00b6-7378-855f-af2b1a148692
Amp-Thread-ID: https://ampcode.com/threads/T-01a10d69-00b6-7378-855f-af2b1a148692 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: T-01a10d69-00b6-7378-855f-af2b1a148692
Amp-Thread-ID: T-01a10d69-00b6-7378-855f-af2b1a148692
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Merging a checkpoint into live history leaves stale blocks and accounts, while restoring only RPC history gives the EVM incorrect block hashes and fees. Validate the complete local chain and replace Beacon state coherently.
What
Notes