Skip to content

Commit b2e39df

Browse files
committed
feat(testutil/validatormock): port synccomm.go (SyncCommMember)
Ports `charon/testutil/validatormock/synccomm.go` to Rust. SyncCommMember drives PrepareEpoch → PrepareSlot → Message → Aggregate; per-slot ready flags use Arc<tokio::sync::OnceCell<()>> to mirror Go's lazy `chan struct{}` maps. TestGetSubcommittees ports the Go internal test verbatim.
1 parent 03c48a9 commit b2e39df

2 files changed

Lines changed: 783 additions & 0 deletions

File tree

crates/testutil/src/validatormock/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ pub mod capture;
99
pub mod error;
1010
pub mod meta;
1111
pub mod sign;
12+
pub mod synccomm;
1213
pub mod validators;
1314

1415
pub use capture::{EndpointMatch, SubmissionCapture};
1516
pub use error::{Error, Result, SignError};
1617
pub use meta::{MetaEpoch, MetaSlot, SpecMeta};
1718
pub use sign::{Sign, SignFunc, Signer};
19+
pub use synccomm::{SyncCommMember, SyncCommitteeDuty};
1820
pub use validators::{ActiveValidators, active_validators};

0 commit comments

Comments
 (0)