forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify PoS headers before inserting them into DB (erigontech#3151)
* Remove TotalDifficulty stage * Introduce FeedHeaderFuncType * Some TODOs * Don't gossip PoS headers * FeedHeaderPoS * Call header.Hash once * Use FeedHeaderPoS for to write PoS header * Support errors in EngineExecutePayloadV1 * useExternalTx boilerplate * Call VerifyHeader on PoS header * latestValidHash must be nil when status is SYNCING * fixCanonicalChain instead of canonicalHeadersCollector * engine.VerifyHeader + FeedHeaderPoS as headerLoadFunc * fix daemon Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
- Loading branch information
1 parent
1dbcaa6
commit 445ac05
Showing
13 changed files
with
168 additions
and
550 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.