fn unspend_stxo<D: Digest>(db: &mut RwLockWriteGuard<InnerDatabase<D>>, hash: HashOutput) -> bool {
    match db.stxos.remove(&hash) {
        None => false,
        Some(stxo) => {
            db.utxos.insert(hash, stxo);
            true
        },
    }
}
// This is a private helper function. When it is called, we are guaranteed to have a write lock on self.db. Unspend_stxo
// is only called for rewind operations and doesn't have to re-insert the utxo entry into the utxo_mmr as the MMR will
// be rolled back.
This is a private helper function. When it is called, we are guaranteed to have a write lock on self.db. Unspend_stxo
is only called for rewind operations and doesn't have to re-insert the utxo entry into the utxo_mmr as the MMR will
be rolled back.
This is a private helper function . When it is called we are guaranteed to have a write lock on self . db . Unspend_stxo is only called for rewind operations and doesn ' t have to re - insert the utxo entry into the utxo_mmr as the MMR will be rolled back .
fn unspend_stxo<D: Digest>(db: &mut RwLockWriteGuard<InnerDatabase<D>>, hash: HashOutput) -> bool {
    match db.stxos.remove(&hash) {
        None => false,
        Some(stxo) => {
            db.utxos.insert(hash, stxo);
            true
        },
    }
}
fn unspend_stxo < D : Digest > ( db : & mut RwLockWriteGuard < InnerDatabase < D > > , hash : HashOutput ) -> bool { match db . stxos . remove ( & hash ) { None => false , Some ( stxo ) => { db . utxos . insert ( hash , stxo ) ; 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