mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 23:25:22 -05:00
use a specific spec rather than the pre-defined phases
This commit is contained in:
@@ -86,10 +86,9 @@ class SpecForks(TypedDict, total=False):
|
||||
|
||||
def _prepare_state(balances_fn: Callable[[Any], Sequence[int]], threshold_fn: Callable[[Any], int],
|
||||
spec: Spec, phases: SpecForks):
|
||||
phase = phases[spec.fork]
|
||||
balances = balances_fn(phase)
|
||||
activation_threshold = threshold_fn(phase)
|
||||
state = create_genesis_state(spec=phase, validator_balances=balances,
|
||||
balances = balances_fn(spec)
|
||||
activation_threshold = threshold_fn(spec)
|
||||
state = create_genesis_state(spec=spec, validator_balances=balances,
|
||||
activation_threshold=activation_threshold)
|
||||
return state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user