-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix post-verge sync #404
fix post-verge sync #404
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1768,6 +1768,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error) | |
if !bc.stateCache.InTransition() && !bc.stateCache.Transitioned() { | ||
bc.stateCache.StartVerkleTransition(parent.Root, emptyVerkleRoot, bc.Config(), bc.Config().PragueTime, parent.Root) | ||
} | ||
} else { | ||
// If the verkle activation time hasn't started, declare it as "not started". | ||
// This is so that | ||
bc.stateCache.InitTransitionStatus(false, false) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the correct place to change this be here? https://github.com/gballet/go-ethereum/blob/transition-post-genesis/core/blockchain.go#L323-L331 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well for one thing the comment above is outdated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TLDR no it doesn't. The reason for this is that this activation comes from the miner, AFTER the blockchain has been initialized. It's also true of a reorg: if for whatever reason the verkle fork time changes (let's say it's pushed back) the reorg will have to go through without the chain to be reinitialized, and so |
||
} | ||
if parent.Number.Uint64() == conversionBlock { | ||
bc.StartVerkleTransition(parent.Root, emptyVerkleRoot, bc.Config(), &parent.Time, parent.Root) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case: this comment is truncated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, yeah