Skip to main content

nsm_value_balance_entry

Function nsm_value_balance_entry 

Source
pub(crate) fn nsm_value_balance_entry(
    network: &Network,
    height: Height,
    stored_balance: Amount<NonNegative>,
    stored_change: Option<Amount<NegativeAllowed>>,
) -> GetBlockchainInfoBalance
Expand description

Returns the nsmValueBalance entry for the block at height, converting the state’s stored balance and change to ZIP 237’s. They differ only at NU7 - 1 and NU7: ZIP 237 sets the balance at NU7 - 1, but the state credits it in the NU7 block (nsm_value_balance_before).