mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
[Altair] Sync committee pools (#2321)
Add pools supporting sync committees: - naive sync aggregation pool - observed sync contributions pool - observed sync contributors pool - observed sync aggregators pool Add SSZ types and tests related to sync committee signatures. Co-authored-by: Michael Sproul <michael@sigmaprime.io> Co-authored-by: realbigsean <seananderson33@gmail.com>
This commit is contained in:
@@ -216,6 +216,20 @@ mod ssz_static {
|
||||
}
|
||||
|
||||
// Altair-only
|
||||
#[test]
|
||||
fn contribution_and_proof() {
|
||||
SszStaticHandler::<ContributionAndProof<MinimalEthSpec>, MinimalEthSpec>::altair_only()
|
||||
.run();
|
||||
SszStaticHandler::<ContributionAndProof<MainnetEthSpec>, MainnetEthSpec>::altair_only()
|
||||
.run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn signed_contribution_and_proof() {
|
||||
SszStaticHandler::<SignedContributionAndProof<MinimalEthSpec>, MinimalEthSpec>::altair_only().run();
|
||||
SszStaticHandler::<SignedContributionAndProof<MainnetEthSpec>, MainnetEthSpec>::altair_only().run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sync_aggregate() {
|
||||
SszStaticHandler::<SyncAggregate<MinimalEthSpec>, MinimalEthSpec>::altair_only().run();
|
||||
@@ -227,6 +241,28 @@ mod ssz_static {
|
||||
SszStaticHandler::<SyncCommittee<MinimalEthSpec>, MinimalEthSpec>::altair_only().run();
|
||||
SszStaticHandler::<SyncCommittee<MainnetEthSpec>, MainnetEthSpec>::altair_only().run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sync_committee_contribution() {
|
||||
SszStaticHandler::<SyncCommitteeContribution<MinimalEthSpec>, MinimalEthSpec>::altair_only(
|
||||
)
|
||||
.run();
|
||||
SszStaticHandler::<SyncCommitteeContribution<MainnetEthSpec>, MainnetEthSpec>::altair_only(
|
||||
)
|
||||
.run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sync_committee_message() {
|
||||
SszStaticHandler::<SyncCommitteeMessage, MinimalEthSpec>::altair_only().run();
|
||||
SszStaticHandler::<SyncCommitteeMessage, MainnetEthSpec>::altair_only().run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sync_aggregator_selection_data() {
|
||||
SszStaticHandler::<SyncAggregatorSelectionData, MinimalEthSpec>::altair_only().run();
|
||||
SszStaticHandler::<SyncAggregatorSelectionData, MainnetEthSpec>::altair_only().run();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user