mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
process deposit receipts
This commit is contained in:
@@ -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))
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user