only increment the state deposit index on old deposit flow

This commit is contained in:
realbigsean
2024-05-11 05:07:59 -04:00
parent b819d2d0a6
commit a97e86c1a6
3 changed files with 8 additions and 5 deletions

View File

@@ -439,7 +439,7 @@ impl Eth1GenesisService {
None
};
apply_deposit(&mut state, data, proof, spec)
apply_deposit(&mut state, data, proof, true, spec)
.map_err(|e| format!("Error whilst processing deposit: {:?}", e))
})?;