Skip to main content

add_v2_reward_accounts_to_state

Function add_v2_reward_accounts_to_state 

Source
pub async fn add_v2_reward_accounts_to_state<I: NodeImplementation<SeqTypes>>(
    consensus_handle: &ConsensusHandle<SeqTypes, I>,
    view: &ViewNumber,
    accounts: &[RewardAccountV2],
    tree: &RewardMerkleTreeV2,
    leaf: Leaf2,
) -> Result<()>
Expand description

Add accounts to the in-memory consensus state. We use this during catchup after receiving verified accounts.