Merge pull request #3570 from etan-status/ts-attprevepoch
Add guard when `fill_prev_epoch` is `True` in epoch `0`
This commit is contained in:
commit
9b04d10a6f
|
@ -280,7 +280,7 @@ def state_transition_with_full_block(spec,
|
|||
)
|
||||
for attestation in attestations:
|
||||
block.body.attestations.append(attestation)
|
||||
if fill_prev_epoch:
|
||||
if fill_prev_epoch and state.slot >= spec.SLOTS_PER_EPOCH:
|
||||
slot_to_attest = state.slot - spec.SLOTS_PER_EPOCH + 1
|
||||
attestations = get_valid_attestation_at_slot(
|
||||
state,
|
||||
|
|
Loading…
Reference in New Issue