erigon-pulse/cmd
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
..
abigen Snapshot: add hash first byte to headers.seg, serve p2p blocks from snapshots (#3198) 2022-01-05 17:14:37 +07:00
bootnode p2p: Disable port mapping task with --nat extip (#3612) 2022-02-24 15:09:56 +00:00
cons Rename Datadir/dataDir to follow conventions. (#3576) 2022-02-22 17:39:48 +00:00
devnettest Added eth_getTransactionCount to the devnet tool (#3734) 2022-03-18 11:57:23 +00:00
downloader Snapshots: better support of p2p (#3749) 2022-03-21 20:36:03 +07:00
erigon Add Erigon Import feature for Hive integration purpose (#3298) 2022-01-20 07:34:50 +00:00
erigoncustom Add Erigon Import feature for Hive integration purpose (#3298) 2022-01-20 07:34:50 +00:00
evm Use "err" key for logging errors. (#3632) 2022-03-01 15:40:51 +00:00
hack Use "err" key for logging errors. (#3632) 2022-03-01 15:40:51 +00:00
integration Refactor PoS downloader (#3717) 2022-03-22 17:49:12 +01:00
p2psim rename (#1978) 2021-05-20 19:25:53 +01:00
pics move kv to erigon-lib (#2467) 2021-07-29 18:53:13 +07:00
prometheus Snapshots: fill kv.HeaderNumber table (#3328) 2022-01-24 13:47:05 +07:00
rlpdump rename (#1978) 2021-05-20 19:25:53 +01:00
rpcdaemon Refactor PoS downloader (#3717) 2022-03-22 17:49:12 +01:00
rpctest Added eth_getTransactionCount to the devnet tool (#3734) 2022-03-18 11:57:23 +00:00
sentry fixed bootstrap nodes bug (#3688) 2022-03-14 09:47:56 +01:00
starknet Rename Datadir/dataDir to follow conventions. (#3576) 2022-02-22 17:39:48 +00:00
state [erigon2] Optimise Huffman decoding (#3727) 2022-03-18 09:55:38 +00:00
txpool path -> filepath (path package is for urls) (#3493) 2022-02-12 20:33:09 +07:00
utils Expose jwt-secret flag in erigon (#3741) 2022-03-21 08:33:10 +07:00