erigon-pulse/cmd
Mike Neuder db1c2d2d82
Adding the AggregateAndProof global topic to the sentinel pubsub service (#5841)
This is the first PR in support of
https://github.com/ledgerwatch/erigon/issues/5824.

The phase 0 sepc
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#global-topics
specifies 6 global pubsub topics that CL nodes need to handle.

This PR implements the `beacob_aggregate_and_proof` topic: 

https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof.

The `AggregateAndProof` and `SignedAggregateAndProof` types are defined
here:
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/validator.md#aggregateandproof.

I followed the implementation of `SignedBeaconBlockBellatrix`, which has
the following references:

1. cmd/lightclient/cltypes/types.go‎: defines the struct with relevant
SSZ annotations on the fields.
2. cmd/lightclient/cltypes/clone.go: this just returns a reference to an
empty object, so not super clear to me if it is necessary:
3. cmd/lightclient/rpc/common.go: this decodes gossip data, switching on
the type of gossip message that is received.
4. ‎cmd/lightclient/sentinel/service/service.go: this listens on the
pubsub channel and notifies when a packet of the relevant type comes in.
5. cmd/lightclient/sentinel/pubsub.go: this defines the gossip topic
struct.
6. cmd/lightclient/lightclient/subscriber.go: this is the lightclient
interface for the incoming messages that come from the sentinel.
2022-10-23 20:22:33 +02:00
..
abigen Refactoring To Increase Code Quality (#4842) 2022-08-04 20:23:00 +07:00
bootnode File system logging (#5812) 2022-10-20 19:25:06 +01:00
devnet Setup calls for rpc testing (#5661) 2022-10-11 13:34:32 +01:00
downloader downloader: nil ptr verify (#5833) 2022-10-22 11:52:05 +07:00
erigon File system logging (#5812) 2022-10-20 19:25:06 +01:00
erigoncustom Add Erigon Import feature for Hive integration purpose (#3298) 2022-01-20 07:34:50 +00:00
evm Support BaseFee in AuRa headers (#5820) 2022-10-21 12:43:44 +02:00
hack File system logging (#5812) 2022-10-20 19:25:06 +01:00
integration add logging cli flags to various cmd (#5816) 2022-10-21 12:36:17 +07:00
lightclient Adding the AggregateAndProof global topic to the sentinel pubsub service (#5841) 2022-10-23 20:22:33 +02:00
observer add logging cli flags to various cmd (#5816) 2022-10-21 12:36:17 +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 E3: par logs (#5839) 2022-10-23 18:51:14 +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 add logging cli flags to various cmd (#5816) 2022-10-21 12:36:17 +07:00
state E3: par logs (#5839) 2022-10-23 18:51:14 +07:00
txpool add logging cli flags to various cmd (#5816) 2022-10-21 12:36:17 +07:00
utils add logging cli flags to various cmd (#5816) 2022-10-21 12:36:17 +07:00
verkle Segmented dump files (#5765) 2022-10-16 18:48:58 +02:00