erigon-pulse/cmd/integration/commands
Andrew Ashikhmin 74a7d7c75a
Refactor PoS downloader (#3717)
* Remove blockHeight arg from FeedHeaderPoW

* Revert "Remove blockHeight arg from FeedHeaderPoW"

This reverts commit 9bf92921db11cd4e13386fcee29f30241d070fc6.

* Move PayloadMessage & ForkChoiceMessage to package engineapi

* RequestList instead of newPayloadCh & forkChoiceCh

* Introduce request status

* Send reply only when request status is New

* Move BeaconRequestList to HeaderDownload

* Don't SetFetching when PoS (Fetching means handling newBlockHashes)

* Merge Syncing & Synced into DataWasMissing

* Introduce SyncStatus

* onlyNew arg in WaitForRequest

* Move waitingForBeaconChain into RequestList

* Interrupt instead of skipCycleHack

* Introduce timeout for PoS headers

* Split downloadMissingPoSHeaders

* Move StartPoSDownloader into HeaderDownload

* Move Stopping interrupt to StartPoSDownloader

* Move stopping PayloadStatus back to HeadersPOS

* cleanUpPoSDownload

* Post-merge fix

* TestBogusForkchoice

* TestPoSDownloader

* requestStatus in attemptPoSDownload

* Broadcast in SetStatus

* Cosmetics

* attemptPoSDownload -> schedulePoSDownload

* Demote some logs to Trace
2022-03-22 17:49:12 +01:00
..
flags.go Snapshots: retire blocks by default (#3707) 2022-03-16 09:57:48 +07:00
refetence_db.go Rename Datadir/dataDir to follow conventions. (#3576) 2022-02-22 17:39:48 +00:00
reset_state.go save (#3715co 2022-03-16 15:35:36 +07:00
root.go path -> filepath (path package is for urls) (#3493) 2022-02-12 20:33:09 +07:00
stages.go Refactor PoS downloader (#3717) 2022-03-22 17:49:12 +01:00
state_stages.go Rename Datadir/dataDir to follow conventions. (#3576) 2022-02-22 17:39:48 +00:00
testing.go Move cli root context to erigon-lib (#3294) 2022-01-19 10:49:07 +07:00