erigon-pulse/turbo/stages
Andrew Ashikhmin 445ac05220
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: Giulio Rebuffo <giulio.rebuffo@gmail.com>
2021-12-23 15:06:10 +01:00
..
bodydownload Genesis sync from existing snapshots (#3087) 2021-12-05 09:03:08 +07:00
headerdownload Verify PoS headers before inserting them into DB (#3151) 2021-12-23 15:06:10 +01:00
blockchain_test.go Add error tests for starknet_sendRawTransaction method (#3102) 2021-12-12 22:24:21 +00:00
chain_makers_test.go Apache licensed logger (#2460) 2021-07-29 17:23:23 +07:00
genesis_test.go Inner errors (#2774) 2021-10-04 22:16:52 +07:00
mock_sentry.go Verify PoS headers before inserting them into DB (#3151) 2021-12-23 15:06:10 +01:00
sentry_mock_test.go Canonical tx ids (#2986) 2021-11-18 14:07:55 +00:00
stageloop.go Verify PoS headers before inserting them into DB (#3151) 2021-12-23 15:06:10 +01:00