fn spend_utxo<D: Digest>(db: &mut RwLockWriteGuard<InnerDatabase<D>>, hash: HashOutput) -> bool {
    match db.utxos.remove(&hash) {
        None => false,
        Some(utxo) => {
            db.curr_utxo_checkpoint.push_deletion(utxo.index as u32);
            db.stxos.insert(hash, utxo);
            true
        },
    }
}
// This is a private helper function. When it is called, we are guaranteed to have a write lock on self.db
This is a private helper function. When it is called, we are guaranteed to have a write lock on self.db
This is a private helper function . When it is called we are guaranteed to have a write lock on self . db
fn spend_utxo<D: Digest>(db: &mut RwLockWriteGuard<InnerDatabase<D>>, hash: HashOutput) -> bool {
    match db.utxos.remove(&hash) {
        None => false,
        Some(utxo) => {
            db.curr_utxo_checkpoint.push_deletion(utxo.index as u32);
            db.stxos.insert(hash, utxo);
            true
        },
    }
}
fn spend_utxo < D : Digest > ( db : & mut RwLockWriteGuard < InnerDatabase < D > > , hash : HashOutput ) -> bool { match db . utxos . remove ( & hash ) { None => false , Some ( utxo ) => { db . curr_utxo_checkpoint . push_deletion ( utxo . index as u32 ) ; db . stxos . insert ( hash , utxo ) ; true } , } }
This is a private helper function.
This is a private helper function .
db
&mut RwLockWriteGuard<InnerDatabase<D>>
hash
HashOutput
db
&mut RwLockWriteGuard<InnerDatabase<D>>
hash
HashOutput