/// Spends the UTXOs with the given hashes
Spends the UTXOs with the given hashes
Spends the UTXOs with the given hashes
pub fn horizon_sync_spend_utxos(&self, hashes: Vec<HashOutput>) -> Result<(), ChainStorageError> {
        let mut db = self.db_write_access()?;
        let mut txn = DbTransaction::new();
        hashes.into_iter().for_each(|hash| txn.spend_utxo(hash));
        txn.create_mmr_checkpoint(MmrTree::Utxo);
        commit(&mut *db, txn)
    }
pub fn horizon_sync_spend_utxos ( & self , hashes : Vec < HashOutput > ) -> Result < ( ) , ChainStorageError > { let mut db = self . db_write_access ( ) ? ; let mut txn = DbTransaction :: new ( ) ; hashes . into_iter ( ) . for_each ( | hash | txn . spend_utxo ( hash ) ) ; txn . create_mmr_checkpoint ( MmrTree :: Utxo ) ; commit ( & mut * db , txn ) }
Spends the UTXOs with the given hashes
Spends the UTXOs with the given hashes
&self
hashes
Vec<HashOutput>