mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
29ff8daa92
addressing some aspects of the req/resp portion of the CL spec: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#reqresp-interaction. this PR does a few things: 1. moves `blocksByRangeHandler` and `beaconBlocksByRootHandler` handlers to a different file in the `handlers` package. these are going to be the more complicated handlers so they will be better in their own files. 2. makes `pingHandler` a method on the `*ConsensusHandlers` receiver and starts returning the sequence number instead of the request. (see https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#ping `Peers request and respond with their local metadata sequence number`). 3. adds a `goodbyeHandler` to respond with a status message of 1. (see https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#goodbye). 4. makes `statusHandler` a method on the `*ConsensusHandlers` receiver. (the rest of this handler is still not implemented. 5. refactored the `heartbeats_test` into a table driven test. this makes the test much more readable: https://dave.cheney.net/2019/05/07/prefer-table-driven-tests. |
||
---|---|---|
.. | ||
abigen | ||
bootnode | ||
devnet | ||
downloader | ||
erigon | ||
erigoncustom | ||
evm | ||
hack | ||
integration | ||
lightclient | ||
observer | ||
p2psim | ||
pics | ||
prometheus | ||
rlpdump | ||
rpcdaemon | ||
rpctest | ||
sentinel_node | ||
sentry | ||
state | ||
txpool | ||
utils | ||
verkle |