mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-01-31 14:18:15 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user