erigon-pulse/cmd/lightclient
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
..
clparams fixed messaage id (more efficient gossip, reduction in bandwidth). (#5770) 2022-10-17 19:13:23 +02:00
cltypes Adding VoluntaryExit, ProposerSlashing, and AttesterSlashing topics to pubsub service (#5851) 2022-10-24 17:52:49 +02:00
fork fixed messaage id (more efficient gossip, reduction in bandwidth). (#5770) 2022-10-17 19:13:23 +02:00
lightclient e3: parallel build missed indices (#5817) 2022-10-21 13:45:20 +07:00
rpc Adding VoluntaryExit, ProposerSlashing, and AttesterSlashing topics to pubsub service (#5851) 2022-10-24 17:52:49 +02:00
sentinel req/resp heartbeat handler modifications (#5859) 2022-10-25 19:30:11 +02:00
utils fixed messaage id (more efficient gossip, reduction in bandwidth). (#5770) 2022-10-17 19:13:23 +02:00
LICENSE Commented out BLS validation because it breaks CI (#5755) 2022-10-15 12:38:37 +02:00
main.go Strenghtened safety system for LC (#5811) 2022-10-20 16:07:17 +02:00