only increment deposit index on state for old deposit flow

This commit is contained in:
realbigsean
2024-05-11 05:00:11 -04:00
parent bf167c3c46
commit 817d4235ae
7 changed files with 43 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ pub fn initialize_beacon_state_from_eth1<E: EthSpec>(
.map_err(BlockProcessingError::MerkleTreeError)?;
state.eth1_data_mut().deposit_root = deposit_tree.root();
let Deposit { proof, data } = deposit;
apply_deposit(&mut state, data, Some(proof), spec)?;
apply_deposit(&mut state, data, Some(proof), true, spec)?;
}
process_activations(&mut state, spec)?;