Function hotshot_task_impls::consensus::handlers::create_and_send_proposal
source · pub async fn create_and_send_proposal<TYPES: NodeType, V: Versions>(
public_key: TYPES::SignatureKey,
private_key: <TYPES::SignatureKey as SignatureKey>::PrivateKey,
consensus: OuterConsensus<TYPES>,
event_stream: Sender<Arc<HotShotEvent<TYPES>>>,
view: TYPES::Time,
commitment_and_metadata: CommitmentAndMetadata<TYPES>,
parent_leaf: Leaf<TYPES>,
state: Arc<TYPES::ValidatedState>,
upgrade_cert: Option<UpgradeCertificate<TYPES>>,
proposal_cert: Option<ViewChangeEvidence<TYPES>>,
round_start_delay: u64,
instance_state: Arc<TYPES::InstanceState>,
upgrade_lock: UpgradeLock<TYPES, V>,
id: u64
) -> Result<()>
Expand description
Create the header for a proposal, build the proposal, and broadcast the proposal send evnet.