type QuorumProposalTaskTestState = QuorumProposalTaskState<TestTypes, MemoryImpl, TestVersions>;Aliased Type§
struct QuorumProposalTaskTestState {Show 18 fields
pub latest_proposed_view: ViewNumber,
pub cur_epoch: Option<EpochNumber>,
pub proposal_dependencies: BTreeMap<ViewNumber, Sender<()>>,
pub formed_quorum_certificates: BTreeMap<ViewNumber, SimpleCertificate<TestTypes, QuorumData2<TestTypes>, SuccessThreshold>>,
pub formed_next_epoch_quorum_certificates: BTreeMap<ViewNumber, SimpleCertificate<TestTypes, NextEpochQuorumData2<TestTypes>, SuccessThreshold>>,
pub instance_state: Arc<TestInstanceState>,
pub membership_coordinator: EpochMembershipCoordinator<TestTypes>,
pub public_key: VerKey,
pub private_key: SignKey,
pub timeout: u64,
pub storage: TestStorage<TestTypes>,
pub consensus: OuterConsensus<TestTypes>,
pub id: u64,
pub formed_upgrade_certificate: Option<SimpleCertificate<TestTypes, UpgradeProposalData<TestTypes>, UpgradeThreshold>>,
pub upgrade_lock: UpgradeLock<TestTypes, TestVersions>,
pub epoch_height: u64,
pub formed_state_cert: BTreeMap<EpochNumber, LightClientStateUpdateCertificateV2<TestTypes>>,
pub first_epoch: Option<(ViewNumber, EpochNumber)>,
}Fields§
§latest_proposed_view: ViewNumberLatest view number that has been proposed for.
cur_epoch: Option<EpochNumber>Current epoch
proposal_dependencies: BTreeMap<ViewNumber, Sender<()>>Table for the in-progress proposal dependency tasks.
formed_quorum_certificates: BTreeMap<ViewNumber, SimpleCertificate<TestTypes, QuorumData2<TestTypes>, SuccessThreshold>>Formed QCs
formed_next_epoch_quorum_certificates: BTreeMap<ViewNumber, SimpleCertificate<TestTypes, NextEpochQuorumData2<TestTypes>, SuccessThreshold>>Formed QCs for the next epoch
instance_state: Arc<TestInstanceState>Immutable instance state
membership_coordinator: EpochMembershipCoordinator<TestTypes>Membership for Quorum Certs/votes
public_key: VerKeyOur public key
private_key: SignKeyOur Private Key
timeout: u64View timeout from config.
storage: TestStorage<TestTypes>This node’s storage ref
consensus: OuterConsensus<TestTypes>Shared consensus task state
id: u64The node’s id
formed_upgrade_certificate: Option<SimpleCertificate<TestTypes, UpgradeProposalData<TestTypes>, UpgradeThreshold>>The most recent upgrade certificate this node formed. Note: this is ONLY for certificates that have been formed internally, so that we can propose with them.
Certificates received from other nodes will get reattached regardless of this fields, since they will be present in the leaf we propose off of.
upgrade_lock: UpgradeLock<TestTypes, TestVersions>Lock for a decided upgrade
epoch_height: u64Number of blocks in an epoch, zero means there are no epochs
formed_state_cert: BTreeMap<EpochNumber, LightClientStateUpdateCertificateV2<TestTypes>>Formed light client state update certificates
first_epoch: Option<(ViewNumber, EpochNumber)>First view in which epoch version takes effect