mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 20:22:02 +00:00
Fix consensus, SSZ, tree hash & run merge EF tests (#2622)
* Update to v1.1.0-beta.4 (squash of #2548) * SSZ, cached tree hash, EF tests
This commit is contained in:
committed by
Paul Hauner
parent
5687c56d51
commit
cce855f9ea
@@ -139,10 +139,10 @@ pub fn per_block_processing<T: EthSpec>(
|
||||
process_eth1_data(state, block.body().eth1_data())?;
|
||||
process_operations(state, block.body(), proposer_index, verify_signatures, spec)?;
|
||||
|
||||
if let BeaconBlockRef::Altair(inner) = block {
|
||||
if let Some(sync_aggregate) = block.body().sync_aggregate() {
|
||||
process_sync_aggregate(
|
||||
state,
|
||||
&inner.body.sync_aggregate,
|
||||
sync_aggregate,
|
||||
proposer_index,
|
||||
verify_signatures,
|
||||
spec,
|
||||
@@ -150,7 +150,11 @@ pub fn per_block_processing<T: EthSpec>(
|
||||
}
|
||||
|
||||
if is_execution_enabled(state, block.body()) {
|
||||
process_execution_payload(state, block.body().execution_payload().unwrap(), spec)?
|
||||
let payload = block
|
||||
.body()
|
||||
.execution_payload()
|
||||
.ok_or(BlockProcessingError::IncorrectStateType)?;
|
||||
process_execution_payload(state, payload, spec)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user