fn verify_inputs_are_utxos<B: BlockchainBackend>(tx: &Transaction, db: &B) -> Result<(), ValidationError> {
    for input in tx.body.inputs() {
        if !is_utxo(db, input.hash())? {
            debug!(
                target: LOG_TARGET,
                "Transaction validation failed due to unknown input: {}", input
            );
            return Err(ValidationError::UnknownInputs);
        }
    }
    Ok(())
}
// This function checks that all inputs in the transaction are valid UTXO's to be spend.
This function checks that all inputs in the transaction are valid UTXO's to be spend.
This function checks that all inputs in the transaction are valid UTXO ' s to be spend .
fn verify_inputs_are_utxos<B: BlockchainBackend>(tx: &Transaction, db: &B) -> Result<(), ValidationError> {
    for input in tx.body.inputs() {
        if !is_utxo(db, input.hash())? {
            debug!(
                target: LOG_TARGET,
                "Transaction validation failed due to unknown input: {}", input
            );
            return Err(ValidationError::UnknownInputs);
        }
    }
    Ok(())
}
fn verify_inputs_are_utxos < B : BlockchainBackend > ( tx : & Transaction , db : & B ) -> Result < ( ) , ValidationError > { for input in tx . body . inputs ( ) { if ! is_utxo ( db , input . hash ( ) ) ? { debug ! ( target LOG_TARGET " " input ) ; return Err ( ValidationError :: UnknownInputs ) ; } } Ok ( ( ) ) }
This function checks that all inputs in the transaction are valid UTXO's to be spend.
This function checks that all inputs in the transaction are valid UTXO ' s to be spend .
tx
&Transaction
db
&B
tx
&Transaction
db
&B