pub fn chain_value_pool_change(
        &self,
        utxos: &HashMap<transparent::OutPoint, transparent::Utxo>,
    ) -> Result<ValueBalance<NegativeAllowed>, ValueBalanceError> {
        let transaction_value_balance_total = self
            .transactions
            .iter()
            .flat_map(|t| t.value_balance(utxos))
            .sum::<Result<ValueBalance<NegativeAllowed>, _>>()?;

        Ok(transaction_value_balance_total.neg())
    }
/// Get the overall chain value pool change in this block,
/// the negative sum of the transaction value balances in this block.
///
/// These are the changes in the transparent, sprout, sapling, and orchard
/// chain value pools, as a result of this block.
///
/// Positive values are added to the corresponding chain value pool.
/// Negative values are removed from the corresponding pool.
///
/// https://zebra.zfnd.org/dev/rfcs/0012-value-pools.html#definitions
///
/// `utxos` must contain the [`Utxo`]s of every input in this block,
/// including UTXOs created by earlier transactions in this block.
///
/// Note: the chain value pool has the opposite sign to the transaction
/// value pool.
Get the overall chain value pool change in this block,
the negative sum of the transaction value balances in this block.

These are the changes in the transparent, sprout, sapling, and orchard
chain value pools, as a result of this block.

Positive values are added to the corresponding chain value pool.
Negative values are removed from the corresponding pool.



`utxos` must contain the [`Utxo`]s of every input in this block,
including UTXOs created by earlier transactions in this block.

the chain value pool has the opposite sign to the transaction
value pool.
Get the overall chain value pool change in this block the negative sum of the transaction value balances in this block . These are the changes in the transparent sprout sapling and orchard chain value pools as a result of this block . Positive values are added to the corresponding chain value pool . Negative values are removed from the corresponding pool . ` utxos ` must contain the [ ` Utxo ` ] s of every input in this block including UTXOs created by earlier transactions in this block . the chain value pool has the opposite sign to the transaction value pool .
pub fn chain_value_pool_change(
        &self,
        utxos: &HashMap<transparent::OutPoint, transparent::Utxo>,
    ) -> Result<ValueBalance<NegativeAllowed>, ValueBalanceError> {
        let transaction_value_balance_total = self
            .transactions
            .iter()
            .flat_map(|t| t.value_balance(utxos))
            .sum::<Result<ValueBalance<NegativeAllowed>, _>>()?;
        Ok(transaction_value_balance_total.neg())
    }
pub fn chain_value_pool_change ( & self , utxos : & HashMap < transparent :: OutPoint , transparent :: Utxo > , ) -> Result < ValueBalance < NegativeAllowed > , ValueBalanceError > { let transaction_value_balance_total = self . transactions . iter ( ) . flat_map ( | t | t . value_balance ( utxos ) ) . sum :: < Result < ValueBalance < NegativeAllowed > , _ > > ( ) ? ; Ok ( transaction_value_balance_total . neg ( ) ) }
Get the overall chain value pool change in this block,
the negative sum of the transaction value balances in this block.
Get the overall chain value pool change in this block the negative sum of the transaction value balances in this block .
&self
utxos
&HashMap<transparent::OutPoint, transparent::Utxo>