Function hotshot_task_impls::helpers::fetch_proposal
source ยท pub(crate) async fn fetch_proposal<TYPES: NodeType, V: Versions>(
view_number: TYPES::View,
event_sender: Sender<Arc<HotShotEvent<TYPES>>>,
event_receiver: Receiver<Arc<HotShotEvent<TYPES>>>,
membership: Arc<RwLock<TYPES::Membership>>,
consensus: OuterConsensus<TYPES>,
sender_public_key: TYPES::SignatureKey,
sender_private_key: <TYPES::SignatureKey as SignatureKey>::PrivateKey,
upgrade_lock: &UpgradeLock<TYPES, V>,
epoch_height: u64,
) -> Result<(Leaf2<TYPES>, View<TYPES>)>
Expand description
Trigger a request to the network for a proposal for a view and wait for the response or timeout.