cuprate_consensus::transactions::contextual_data

Function batch_get_decoy_info

Source
pub async fn batch_get_decoy_info<'a, D: Database + Clone + Send + 'static>(
    txs_verification_data: &'a [Arc<TransactionVerificationData>],
    hf: HardFork,
    database: D,
) -> Result<impl Iterator<Item = Result<DecoyInfo, ConsensusError>> + 'a, ExtendedConsensusError>
Expand description

Refreshes the transactions TxRingMembersInfo, if needed.

ยงPanics

This functions panics if hf == HardFork::V1 as decoy info should not be needed for V1.