Skip to content

Refactor manager: harden epoch vote collector flow#561

Open
TanguyDeTaxis wants to merge 2 commits intoTelcoin-Association:mainfrom
TanguyDeTaxis:547-epoch-vote-collector-refactor
Open

Refactor manager: harden epoch vote collector flow#561
TanguyDeTaxis wants to merge 2 commits intoTelcoin-Association:mainfrom
TanguyDeTaxis:547-epoch-vote-collector-refactor

Conversation

@TanguyDeTaxis
Copy link
Contributor

Summary

  • harden epoch_vote_collector lifecycle and split flow into explicit helpers
  • drain vote_rx while waiting for epoch records to avoid channel buildup
  • replace timeout-loop collection with interval-based rebroadcast + quorum grace period
  • strengthen epoch-cert fallback recovery with bounded retry/backoff
  • add targeted coverage for collector edge-cases and network-side epoch vote validation
  • add regression coverage for validator ejection ordering assumptions in epoch cert verification

Issue Coverage

Testing

  • RUSTC_WRAPPER= cargo test -p tn-node epoch_vote_collector -- --nocapture
  • RUSTC_WRAPPER= cargo test -p tn-primary test_epoch_vote_gossip_rejects_unknown_authority_when_epoch_record_known -- --nocapture
  • RUSTC_WRAPPER= cargo test -p tn-types test_epoch_record_cert_with_signer_ejected_from_next_committee -- --nocapture

…lector module directly from manager, extract epoch vote collector and fix alt-vote tracking (Telcoin-Association#547)

- drain epoch votes while waiting for epoch records

- switch collector timeout loop to interval-based collection

- strengthen peer fallback retries for epoch cert recovery

- add coverage for epoch vote handler validation and validator-ejection cert checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor manager.rs: Extract Epoch Vote Collector and Harden Logic

1 participant