mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 11:35:01 -05:00
fix argument typing for auxilary transition func
This commit is contained in:
@@ -10,6 +10,7 @@ from typing import (
|
||||
from .spec import (
|
||||
BeaconState,
|
||||
BeaconBlock,
|
||||
Slot
|
||||
)
|
||||
|
||||
|
||||
@@ -98,7 +99,7 @@ def process_epoch_transition(state: BeaconState) -> None:
|
||||
spec.finish_epoch_update(state)
|
||||
|
||||
|
||||
def state_transition_to(state: BeaconState, up_to: int) -> BeaconState:
|
||||
def state_transition_to(state: BeaconState, up_to: Slot) -> BeaconState:
|
||||
while state.slot < up_to:
|
||||
spec.cache_state(state)
|
||||
if (state.slot + 1) % spec.SLOTS_PER_EPOCH == 0:
|
||||
|
||||
Reference in New Issue
Block a user