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

@@ -171,7 +171,9 @@ impl<E: EthSpec> Operation<E> for Deposit {
spec: &ChainSpec,
_: &Operations<E, Self>,
) -> Result<(), BlockProcessingError> {
process_deposits(state, &[self.clone()], spec)
let res = process_deposits(state, &[self.clone()], spec);
dbg!(serde_json::to_string(state).unwrap());
res
}
}