/// Moves the given set of transaction inputs from the UTXO set to the STXO set. All the inputs *must* currently
/// exist in the UTXO set, or the transaction will error with `ChainStorageError::UnspendableOutput`
Moves the given set of transaction inputs from the UTXO set to the STXO set. All the inputs *must* currently
exist in the UTXO set, or the transaction will error with `ChainStorageError::UnspendableOutput`
Moves the given set of transaction inputs from the UTXO set to the STXO set . All the inputs * must * currently exist in the UTXO set or the transaction will error with ` ChainStorageError :: UnspendableOutput `
pub fn spend_inputs(&mut self, inputs: &[TransactionInput]) {
        for input in inputs {
            let input_hash = input.hash();
            self.spend_utxo(input_hash);
        }
    }
pub fn spend_inputs ( & mut self , inputs : & [ TransactionInput ] ) { for input in inputs { let input_hash = input . hash ( ) ; self . spend_utxo ( input_hash ) ; } }
Moves the given set of transaction inputs from the UTXO set to the STXO set.
Moves the given set of transaction inputs from the UTXO set to the STXO set .
&mut self
inputs
&[TransactionInput]