bump spec ref versions
This commit is contained in:
parent
2db99545cd
commit
2d691b2e14
|
@ -107,7 +107,7 @@ type
|
||||||
# Hashed-state transition functions
|
# Hashed-state transition functions
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.10.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
||||||
func process_slot*(state: var HashedBeaconState) {.nbench.} =
|
func process_slot*(state: var HashedBeaconState) {.nbench.} =
|
||||||
# Cache state root
|
# Cache state root
|
||||||
let previous_slot_state_root = state.root
|
let previous_slot_state_root = state.root
|
||||||
|
@ -122,7 +122,7 @@ func process_slot*(state: var HashedBeaconState) {.nbench.} =
|
||||||
state.data.block_roots[state.data.slot mod SLOTS_PER_HISTORICAL_ROOT] =
|
state.data.block_roots[state.data.slot mod SLOTS_PER_HISTORICAL_ROOT] =
|
||||||
hash_tree_root(state.data.latest_block_header)
|
hash_tree_root(state.data.latest_block_header)
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.10.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
||||||
proc advance_slot*(state: var HashedBeaconState,
|
proc advance_slot*(state: var HashedBeaconState,
|
||||||
nextStateRoot: Opt[Eth2Digest], updateFlags: UpdateFlags) =
|
nextStateRoot: Opt[Eth2Digest], updateFlags: UpdateFlags) =
|
||||||
# Special case version of process_slots that moves one slot at a time - can
|
# Special case version of process_slots that moves one slot at a time - can
|
||||||
|
@ -143,7 +143,7 @@ proc advance_slot*(state: var HashedBeaconState,
|
||||||
else:
|
else:
|
||||||
state.root = hash_tree_root(state.data)
|
state.root = hash_tree_root(state.data)
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.10.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
# https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/beacon-chain.md#beacon-chain-state-transition-function
|
||||||
proc process_slots*(state: var HashedBeaconState, slot: Slot,
|
proc process_slots*(state: var HashedBeaconState, slot: Slot,
|
||||||
updateFlags: UpdateFlags = {}) {.nbench.} =
|
updateFlags: UpdateFlags = {}) {.nbench.} =
|
||||||
# TODO: Eth specs strongly assert that state.data.slot <= slot
|
# TODO: Eth specs strongly assert that state.data.slot <= slot
|
||||||
|
|
Loading…
Reference in New Issue