good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 445ac052 authored by Andrew Ashikhmin's avatar Andrew Ashikhmin Committed by GitHub
Browse files

Verify PoS headers before inserting them into DB (#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: default avatarGiulio Rebuffo <giulio.rebuffo@gmail.com>
parent 1dbcaa69
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment