pub async fn add_v2_reward_accounts_to_state<N: ConnectedNetwork<PubKey>, V: Versions, P: SequencerPersistence>(
consensus: &Arc<RwLock<Consensus<SeqTypes>>>,
view: &<SeqTypes as NodeType>::View,
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.