erigon
erigon copied to clipboard
Caplin: beacon committee subscription api
This pr implements following beacon api https://ethereum.github.io/beacon-APIs/#/Validator/prepareBeaconCommitteeSubnet Steps:
- once receive committee subscription request, record this subscription info associated with validator index.
- if
isAggregatorflag is on, prepare internal data structure to collect and aggregate incoming attestation. - set expiry and begin to subscribe
beacon_attestation_{subnet}, so we are capable of receiving attestation data from peer. - whenever receive attestation data, try aggregate it if needed.
General feedback: Maybe for aggregating signatures and public key it is better to do another AttestationAggregator struct. the reason is that we can get that from different sources such as: aggregates topic, attestation topics or from the beacon API.
Quality Gate passed
Issues
4 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code