Expand description
Reading address balances.
In the functions in this module:
The block write task commits blocks to the finalized state before updating
chain
with a cached copy of the best non-finalized chain from
NonFinalizedState.chain_set
. Then the block commit task can commit additional blocks to
the finalized state after we’ve cloned the chain
.
This means that some blocks can be in both:
Functions§
- apply_
balance_ 🔒change - Add the supplied finalized and non-finalized balances together, and return the result.
- chain_
transparent_ 🔒balance_ change - Returns the total transparent balance change for
addresses
in the non-finalized chain, matching the balance for thefinalized_tip
. - finalized_
transparent_ 🔒balance - Returns the total transparent balance for
addresses
in the finalized chain, and the finalized tip height the balances were queried at. - transparent_
balance - Returns the total transparent balance for the supplied
transparent::Address
es.