fn for_each_utxo<F>(&self, mut f: F) -> Result<(), ChainStorageError>
    where F: FnMut(Result<(HashOutput, TransactionOutput), ChainStorageError>) {
        let db = self.db_access()?;
        for (key, val) in db.utxos.iter() {
            f(Ok((key.clone(), val.value.clone())));
        }
        Ok(())
    }
/// Iterate over all the stored unspent transaction outputs and execute the function `f` for each UTXO.
Iterate over all the stored unspent transaction outputs and execute the function `f` for each UTXO.
Iterate over all the stored unspent transaction outputs and execute the function ` f ` for each UTXO .
fn for_each_utxo<F>(&self, mut f: F) -> Result<(), ChainStorageError>
    where F: FnMut(Result<(HashOutput, TransactionOutput), ChainStorageError>) {
        let db = self.db_access()?;
        for (key, val) in db.utxos.iter() {
            f(Ok((key.clone(), val.value.clone())));
        }
        Ok(())
    }
fn for_each_utxo < F > ( & self , mut f : F ) -> Result < ( ) , ChainStorageError > where F : FnMut ( Result < ( HashOutput , TransactionOutput ) , ChainStorageError > ) { let db = self . db_access ( ) ? ; for ( key , val ) in db . utxos . iter ( ) { f ( Ok ( ( key . clone ( ) , val . value . clone ( ) ) ) ) ; } Ok ( ( ) ) }
Iterate over all the stored unspent transaction outputs and execute the function `f` for each UTXO.
Iterate over all the stored unspent transaction outputs and execute the function ` f ` for each UTXO .
&self
f
F
&self
f
F