mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-01 01:08:27 +00:00
Merge branch 'unstable' into dev/etan/lc-electra
This commit is contained in:
commit
4e8e316012
@ -611,11 +611,17 @@ iterator makeTestBlocks*(
|
|||||||
let
|
let
|
||||||
parent_root = withState(state[]): forkyState.latest_block_root
|
parent_root = withState(state[]): forkyState.latest_block_root
|
||||||
attestations =
|
attestations =
|
||||||
if attested:
|
if attested and state.kind < ConsensusFork.Electra:
|
||||||
makeFullAttestations(
|
makeFullAttestations(
|
||||||
state[], parent_root, getStateField(state[], slot), cache)
|
state[], parent_root, getStateField(state[], slot), cache)
|
||||||
else:
|
else:
|
||||||
@[]
|
@[]
|
||||||
|
electraAttestations =
|
||||||
|
if attested and state.kind >= ConsensusFork.Electra:
|
||||||
|
makeFullElectraAttestations(
|
||||||
|
state[], parent_root, getStateField(state[], slot), cache)
|
||||||
|
else:
|
||||||
|
@[]
|
||||||
stateEth1 = getStateField(state[], eth1_data)
|
stateEth1 = getStateField(state[], eth1_data)
|
||||||
stateDepositIndex = getStateField(state[], eth1_deposit_index)
|
stateDepositIndex = getStateField(state[], eth1_deposit_index)
|
||||||
deposits =
|
deposits =
|
||||||
@ -633,7 +639,8 @@ iterator makeTestBlocks*(
|
|||||||
state[], cache,
|
state[], cache,
|
||||||
eth1_data = eth1_data,
|
eth1_data = eth1_data,
|
||||||
attestations = attestations,
|
attestations = attestations,
|
||||||
|
electraAttestations = electraAttestations,
|
||||||
deposits = deposits,
|
deposits = deposits,
|
||||||
sync_aggregate = sync_aggregate,
|
sync_aggregate = sync_aggregate,
|
||||||
graffiti = graffiti,
|
graffiti = graffiti,
|
||||||
cfg = cfg)
|
cfg = cfg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user