Merge pull request #449 from tersec/master
fix ValidatorRegistryDeltaBlock field naming/reference inconsistency
This commit is contained in:
commit
4048faf654
|
@ -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…
Reference in New Issue