process deposit receipts

This commit is contained in:
realbigsean
2024-05-07 11:07:12 -04:00
parent 1d5f75582f
commit 32357d8f0a
3 changed files with 50 additions and 16 deletions

View File

@@ -432,8 +432,14 @@ impl Eth1GenesisService {
// Such an optimization would only be useful in a scenario where `MIN_GENESIS_TIME`
// is reached _prior_ to `MIN_ACTIVE_VALIDATOR_COUNT`. I suspect this won't be the
// case for mainnet, so we defer this optimization.
let Deposit { proof, data } = deposit;
let proof = if PROOF_VERIFICATION {
Some(proof)
} else {
None
};
apply_deposit(&mut state, &deposit, spec, PROOF_VERIFICATION)
apply_deposit(&mut state, data, proof, spec)
.map_err(|e| format!("Error whilst processing deposit: {:?}", e))
})?;