pub fn value_balance<A, E, F>(
bundle: &Bundle<A, Zatoshis>,
get_prevout_value: F,
) -> Result<Option<ZatBalance>, E>Expand description
Returns the amount of value that bundle adds to or removes from the transparent
pool.
A positive result means the containing transaction moves funds out of the transparent pool, into shielded pools or to fees. A negative result means it moves funds into the transparent pool.
get_prevout_value returns the value of the output that a given outpoint refers to,
or None if it is not known. The result is Ok(None) if the value of any input is
not known.
Returns an error if a sum overflows or underflows, or if get_prevout_value fails.