type QuorumProposalTaskTestState = QuorumProposalTaskState<TestTypes, MemoryImpl, TestVersions>;

Aliased Type§

struct QuorumProposalTaskTestState {
Show 16 fields pub latest_proposed_view: ViewNumber, pub proposal_dependencies: BTreeMap<ViewNumber, JoinHandle<()>>, pub network: Arc<MemoryNetwork<VerKey>>, pub output_event_stream: Sender<Event<TestTypes>>, pub instance_state: Arc<TestInstanceState>, pub timeout_membership: Arc<StaticCommittee<TestTypes>>, pub quorum_membership: Arc<StaticCommittee<TestTypes>>, pub public_key: VerKey, pub private_key: SignKey, pub timeout: u64, pub storage: Arc<RwLock<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,
}

Fields§

§latest_proposed_view: ViewNumber

Latest view number that has been proposed for.

§proposal_dependencies: BTreeMap<ViewNumber, JoinHandle<()>>

Table for the in-progress proposal dependency tasks.

§network: Arc<MemoryNetwork<VerKey>>

The underlying network

§output_event_stream: Sender<Event<TestTypes>>

Output events to application

§instance_state: Arc<TestInstanceState>

Immutable instance state

§timeout_membership: Arc<StaticCommittee<TestTypes>>

Membership for Timeout votes/certs

§quorum_membership: Arc<StaticCommittee<TestTypes>>

Membership for Quorum Certs/votes

§public_key: VerKey

Our public key

§private_key: SignKey

Our Private Key

§timeout: u64

View timeout from config.

§storage: Arc<RwLock<TestStorage<TestTypes>>>

This node’s storage ref

§consensus: OuterConsensus<TestTypes>

Shared consensus task state

§id: u64

The 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: u64

Number of blocks in an epoch, zero means there are no epochs