Skip to content

Commit

Permalink
3917 pull epoch from qc in quorum_proposal::wait_for_qc_event (#3955)
Browse files Browse the repository at this point in the history
  • Loading branch information
pls148 authored Dec 11, 2024
1 parent ffdc6fa commit 988df91
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/task-impls/src/quorum_proposal/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ use hotshot_types::{
message::Proposal,
simple_certificate::{QuorumCertificate2, UpgradeCertificate},
traits::{
block_contents::BlockHeader,
election::Membership,
node_implementation::{ConsensusTime, NodeType},
block_contents::BlockHeader, election::Membership, node_implementation::NodeType,
signature_key::SignatureKey,
},
vote::{Certificate, HasViewNumber},
Expand Down Expand Up @@ -128,9 +126,8 @@ impl<TYPES: NodeType, V: Versions> ProposalDependencyHandle<TYPES, V> {
.is_valid_cert(
// TODO take epoch from `qc`
// https://github.com/EspressoSystems/HotShot/issues/3917
self.quorum_membership.stake_table(TYPES::Epoch::new(0)),
self.quorum_membership
.success_threshold(TYPES::Epoch::new(0)),
self.quorum_membership.stake_table(qc.data.epoch),
self.quorum_membership.success_threshold(qc.data.epoch),
&self.upgrade_lock,
)
.await
Expand Down

0 comments on commit 988df91

Please sign in to comment.