mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-27 10:54:47 +00:00
fix ValidatorRegistryDeltaBlock field naming/reference inconsistency
This commit is contained in:
parent
0515adff44
commit
5058e38b23
@ -1371,7 +1371,7 @@ def activate_validator(state: BeaconState, index: int, genesis: bool) -> None:
|
|||||||
validator.activation_slot = GENESIS_SLOT if genesis else (state.slot + ENTRY_EXIT_DELAY)
|
validator.activation_slot = GENESIS_SLOT if genesis else (state.slot + ENTRY_EXIT_DELAY)
|
||||||
state.validator_registry_delta_chain_tip = hash_tree_root(
|
state.validator_registry_delta_chain_tip = hash_tree_root(
|
||||||
ValidatorRegistryDeltaBlock(
|
ValidatorRegistryDeltaBlock(
|
||||||
current_validator_registry_delta_chain_tip=state.validator_registry_delta_chain_tip,
|
latest_registry_delta_root=state.validator_registry_delta_chain_tip,
|
||||||
validator_index=index,
|
validator_index=index,
|
||||||
pubkey=validator.pubkey,
|
pubkey=validator.pubkey,
|
||||||
slot=validator.activation_slot,
|
slot=validator.activation_slot,
|
||||||
@ -1400,7 +1400,7 @@ def exit_validator(state: BeaconState, index: int) -> None:
|
|||||||
validator.exit_count = state.validator_registry_exit_count
|
validator.exit_count = state.validator_registry_exit_count
|
||||||
state.validator_registry_delta_chain_tip = hash_tree_root(
|
state.validator_registry_delta_chain_tip = hash_tree_root(
|
||||||
ValidatorRegistryDeltaBlock(
|
ValidatorRegistryDeltaBlock(
|
||||||
current_validator_registry_delta_chain_tip=state.validator_registry_delta_chain_tip,
|
latest_registry_delta_root=state.validator_registry_delta_chain_tip,
|
||||||
validator_index=index,
|
validator_index=index,
|
||||||
pubkey=validator.pubkey,
|
pubkey=validator.pubkey,
|
||||||
slot=validator.exit_slot,
|
slot=validator.exit_slot,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user