erigon-pulse/cmd
Mike Neuder 29ff8daa92
req/resp heartbeat handler modifications (#5859)
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.
2022-10-25 19:30:11 +02:00
..
abigen move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
bootnode move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
devnet Setup calls for rpc testing (#5661) 2022-10-11 13:34:32 +01:00
downloader move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
erigon move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
erigoncustom Add Erigon Import feature for Hive integration purpose (#3298) 2022-01-20 07:34:50 +00:00
evm move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
hack move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
integration move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
lightclient req/resp heartbeat handler modifications (#5859) 2022-10-25 19:30:11 +02:00
observer move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
p2psim go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
pics Update consensus tests to v11 (#4724) 2022-07-26 09:35:38 +02:00
prometheus grafana: more mdbx internals (#5789) 2022-10-19 12:07:31 +07:00
rlpdump rename (#1978) 2021-05-20 19:25:53 +01:00
rpcdaemon move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
rpctest go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
sentinel_node Adding the AggregateAndProof global topic to the sentinel pubsub service (#5841) 2022-10-23 20:22:33 +02:00
sentry move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
state e3: better prune logs, apply thread can work without rwTx (#5860) 2022-10-25 16:08:01 +07:00
txpool move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
utils move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
verkle Segmented dump files (#5765) 2022-10-16 18:48:58 +02:00