Skip to content

Commit 8d99002

Browse files
authored
automated consensus spec URL updating to v1.5.0-beta.3 (#7016)
1 parent 2262364 commit 8d99002

31 files changed

+68
-68
lines changed

beacon_chain/beacon_chain_db_immutable.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type
132132
current_sync_committee*: SyncCommittee # [New in Altair]
133133
next_sync_committee*: SyncCommittee # [New in Altair]
134134

135-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/bellatrix/beacon-chain.md#beaconstate
135+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/bellatrix/beacon-chain.md#beaconstate
136136
# Memory-representation-equivalent to a Bellatrix BeaconState for in-place SSZ
137137
# reading and writing
138138
BellatrixBeaconStateNoImmutableValidators* = object

beacon_chain/el/merkle_minimal.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{.push raises: [].}
99

10-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

1212
# Merkle tree helpers
1313
# ---------------------------------------------------------------

beacon_chain/libnimbus_lc/libnimbus_lc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ typedef struct ETHConsensusConfig ETHConsensusConfig;
9494
* based on the given `config.yaml` file content - If successful.
9595
* @return `NULL` - If the given `config.yaml` is malformed or incompatible.
9696
*
97-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/configs/README.md
9898
*/
9999
ETH_RESULT_USE_CHECK
100100
ETHConsensusConfig *_Nullable ETHConsensusConfigCreateFromYaml(const char *configFileContent);
@@ -150,7 +150,7 @@ typedef struct ETHBeaconState ETHBeaconState;
150150
* @return `NULL` - If the given `sszBytes` is malformed.
151151
*
152152
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/beacon-chain.md#beaconstate
153-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#beaconstate
153+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#beaconstate
154154
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#beaconstate
155155
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/beacon-chain.md#beaconstate
156156
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/configs/README.md

beacon_chain/libnimbus_lc/libnimbus_lc.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ proc ETHBeaconStateCreateFromSsz(
142142
##
143143
## See:
144144
## * https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#beaconstate
145-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#beaconstate
145+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#beaconstate
146146
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#beaconstate
147147
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/capella/beacon-chain.md#beaconstate
148-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/configs/README.md
148+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/configs/README.md
149149
let
150150
consensusFork = ConsensusFork.decodeString($consensusVersion).valueOr:
151151
return nil

beacon_chain/nimbus_beacon_node.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ proc installMessageValidators(node: BeaconNode) =
20832083
MsgSource.gossip, msg)))
20842084

20852085
when consensusFork >= ConsensusFork.Capella:
2086-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/p2p-interface.md#bls_to_execution_change
2086+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/p2p-interface.md#bls_to_execution_change
20872087
node.network.addAsyncValidator(
20882088
getBlsToExecutionChangeTopic(digest), proc (
20892089
msg: SignedBLSToExecutionChange

beacon_chain/rpc/rest_config_api.nim

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
2424
cachedConfigSpec =
2525
RestApiResponse.prepareJsonResponse(
2626
(
27-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/phase0.yaml
27+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/presets/mainnet/phase0.yaml
2828
MAX_COMMITTEES_PER_SLOT:
2929
Base10.toString(MAX_COMMITTEES_PER_SLOT),
3030
TARGET_COMMITTEE_SIZE:
@@ -95,7 +95,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
9595
MAX_VOLUNTARY_EXITS:
9696
Base10.toString(MAX_VOLUNTARY_EXITS),
9797

98-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/altair.yaml
98+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/presets/mainnet/altair.yaml
9999
INACTIVITY_PENALTY_QUOTIENT_ALTAIR:
100100
Base10.toString(INACTIVITY_PENALTY_QUOTIENT_ALTAIR),
101101
MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR:
@@ -113,7 +113,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
113113
UPDATE_TIMEOUT:
114114
Base10.toString(UPDATE_TIMEOUT),
115115

116-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/bellatrix.yaml
116+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/presets/mainnet/bellatrix.yaml
117117
INACTIVITY_PENALTY_QUOTIENT_BELLATRIX:
118118
Base10.toString(INACTIVITY_PENALTY_QUOTIENT_BELLATRIX),
119119
MIN_SLASHING_PENALTY_QUOTIENT_BELLATRIX:
@@ -130,15 +130,15 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
130130
MAX_EXTRA_DATA_BYTES:
131131
Base10.toString(uint64(MAX_EXTRA_DATA_BYTES)),
132132

133-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/capella.yaml
133+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/presets/mainnet/capella.yaml
134134
MAX_BLS_TO_EXECUTION_CHANGES:
135135
Base10.toString(uint64(MAX_BLS_TO_EXECUTION_CHANGES)),
136136
MAX_WITHDRAWALS_PER_PAYLOAD:
137137
Base10.toString(uint64(MAX_WITHDRAWALS_PER_PAYLOAD)),
138138
MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP:
139139
Base10.toString(uint64(MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP)),
140140

141-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/deneb.yaml
141+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/presets/mainnet/deneb.yaml
142142
FIELD_ELEMENTS_PER_BLOB:
143143
Base10.toString(deneb_preset.FIELD_ELEMENTS_PER_BLOB),
144144
MAX_BLOB_COMMITMENTS_PER_BLOCK:

beacon_chain/spec/beaconstate.nim

+10-10
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ func get_slashing_penalty*(
370370
else:
371371
{.fatal: "invalid BeaconState type".}
372372

373-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
374-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
373+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#slash_validator
374+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#modified-slash_validator
375375
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
376376
func get_whistleblower_reward*(
377377
state: phase0.BeaconState | altair.BeaconState | bellatrix.BeaconState |
@@ -385,8 +385,8 @@ func get_whistleblower_reward*(
385385
validator_effective_balance: Gwei): Gwei =
386386
validator_effective_balance div WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA
387387

388-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
389-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
388+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#slash_validator
389+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#modified-slash_validator
390390
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
391391
func get_proposer_reward(state: ForkyBeaconState, whistleblower_reward: Gwei): Gwei =
392392
when state is phase0.BeaconState:
@@ -398,9 +398,9 @@ func get_proposer_reward(state: ForkyBeaconState, whistleblower_reward: Gwei): G
398398
else:
399399
{.fatal: "invalid BeaconState type".}
400400

401-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
402-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
403-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/bellatrix/beacon-chain.md#modified-slash_validator
401+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#slash_validator
402+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#modified-slash_validator
403+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/bellatrix/beacon-chain.md#modified-slash_validator
404404
proc slash_validator*(
405405
cfg: RuntimeConfig, state: var ForkyBeaconState,
406406
slashed_index: ValidatorIndex, pre_exit_queue_info: ExitQueueInfo,
@@ -908,7 +908,7 @@ func get_attestation_participation_flag_indices(
908908
# TODO these duplicate some stuff in state_transition_epoch which uses TotalBalances
909909
# better to centralize around that if feasible
910910

911-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#get_total_active_balance
911+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#get_total_active_balance
912912
func get_total_active_balance*(state: ForkyBeaconState, cache: var StateCache): Gwei =
913913
## Return the combined effective balance of the active validators.
914914
## Note: ``get_total_balance`` returns ``EFFECTIVE_BALANCE_INCREMENT`` Gwei
@@ -935,7 +935,7 @@ func get_base_reward_per_increment*(
935935
get_base_reward_per_increment_sqrt(
936936
integer_squareroot(distinctBase(total_active_balance)))
937937

938-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#get_base_reward
938+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#get_base_reward
939939
func get_base_reward(
940940
state: altair.BeaconState | bellatrix.BeaconState | capella.BeaconState |
941941
deneb.BeaconState | electra.BeaconState | fulu.BeaconState,
@@ -2034,7 +2034,7 @@ func upgrade_to_capella*(cfg: RuntimeConfig, pre: bellatrix.BeaconState):
20342034
# historical_summaries initialized to correct default automatically
20352035
)
20362036

2037-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/deneb/fork.md#upgrading-the-state
2037+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/deneb/fork.md#upgrading-the-state
20382038
func upgrade_to_deneb*(cfg: RuntimeConfig, pre: capella.BeaconState):
20392039
ref deneb.BeaconState =
20402040
let

beacon_chain/spec/datatypes/altair.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static:
4040
doAssert ord(TIMELY_HEAD_FLAG_INDEX) == 2
4141

4242
const
43-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#incentivization-weights
43+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#incentivization-weights
4444
TIMELY_SOURCE_WEIGHT* = 14
4545
TIMELY_TARGET_WEIGHT* = 26
4646
TIMELY_HEAD_WEIGHT* = 14
@@ -96,7 +96,7 @@ type
9696
sync_committee_bits*: BitArray[SYNC_COMMITTEE_SIZE]
9797
sync_committee_signature*: TrustedSig
9898

99-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#synccommittee
99+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#synccommittee
100100
SyncCommittee* = object
101101
pubkeys*: HashArray[Limit SYNC_COMMITTEE_SIZE, ValidatorPubKey]
102102
aggregate_pubkey*: ValidatorPubKey

beacon_chain/spec/datatypes/base.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ type
401401
sync_committees*: Table[SyncCommitteePeriod, SyncCommitteeCache]
402402

403403
# This matches the mutable state of the Solidity deposit contract
404-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/solidity_deposit_contract/deposit_contract.sol
404+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/solidity_deposit_contract/deposit_contract.sol
405405
DepositContractState* = object
406406
branch*: array[DEPOSIT_CONTRACT_TREE_DEPTH, Eth2Digest]
407407
deposit_count*: array[32, byte] # Uint256

beacon_chain/spec/datatypes/capella.nim

+5-5
Original file line numberDiff line numberDiff line change
@@ -676,21 +676,21 @@ func is_valid_light_client_header*(
676676
get_subtree_index(EXECUTION_PAYLOAD_GINDEX),
677677
header.beacon.body_root)
678678

679-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/light-client/fork.md#upgrading-light-client-data
679+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/light-client/fork.md#upgrading-light-client-data
680680
func upgrade_lc_header_to_capella*(
681681
pre: altair.LightClientHeader): LightClientHeader =
682682
LightClientHeader(
683683
beacon: pre.beacon)
684684

685-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/light-client/fork.md#upgrading-light-client-data
685+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/light-client/fork.md#upgrading-light-client-data
686686
func upgrade_lc_bootstrap_to_capella*(
687687
pre: altair.LightClientBootstrap): LightClientBootstrap =
688688
LightClientBootstrap(
689689
header: upgrade_lc_header_to_capella(pre.header),
690690
current_sync_committee: pre.current_sync_committee,
691691
current_sync_committee_branch: pre.current_sync_committee_branch)
692692

693-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/light-client/fork.md#upgrading-light-client-data
693+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/light-client/fork.md#upgrading-light-client-data
694694
func upgrade_lc_update_to_capella*(
695695
pre: altair.LightClientUpdate): LightClientUpdate =
696696
LightClientUpdate(
@@ -702,7 +702,7 @@ func upgrade_lc_update_to_capella*(
702702
sync_aggregate: pre.sync_aggregate,
703703
signature_slot: pre.signature_slot)
704704

705-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/light-client/fork.md#upgrading-light-client-data
705+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/light-client/fork.md#upgrading-light-client-data
706706
func upgrade_lc_finality_update_to_capella*(
707707
pre: altair.LightClientFinalityUpdate): LightClientFinalityUpdate =
708708
LightClientFinalityUpdate(
@@ -712,7 +712,7 @@ func upgrade_lc_finality_update_to_capella*(
712712
sync_aggregate: pre.sync_aggregate,
713713
signature_slot: pre.signature_slot)
714714

715-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/light-client/fork.md#upgrading-light-client-data
715+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/capella/light-client/fork.md#upgrading-light-client-data
716716
func upgrade_lc_optimistic_update_to_capella*(
717717
pre: altair.LightClientOptimisticUpdate): LightClientOptimisticUpdate =
718718
LightClientOptimisticUpdate(

beacon_chain/spec/datatypes/deneb.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ func upgrade_lc_update_to_deneb*(
725725
sync_aggregate: pre.sync_aggregate,
726726
signature_slot: pre.signature_slot)
727727

728-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/deneb/light-client/fork.md#upgrading-light-client-data
728+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/deneb/light-client/fork.md#upgrading-light-client-data
729729
func upgrade_lc_finality_update_to_deneb*(
730730
pre: capella.LightClientFinalityUpdate): LightClientFinalityUpdate =
731731
LightClientFinalityUpdate(

beacon_chain/spec/datatypes/electra.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ func normalize_merkle_branch*[N](
809809
res[0 ..< depth] = branch[num_extra ..< branch.len]
810810
res
811811

812-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/light-client/fork.md#upgrading-light-client-data
812+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/electra/light-client/fork.md#upgrading-light-client-data
813813
func upgrade_lc_header_to_electra*(
814814
pre: deneb.LightClientHeader): LightClientHeader =
815815
LightClientHeader(

beacon_chain/spec/datatypes/fulu.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const
5959
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/fulu/p2p-interface.md#configuration
6060
DATA_COLUMN_SIDECAR_SUBNET_COUNT* = 128
6161

62-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/fulu/das-core.md#custody-setting
62+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/fulu/das-core.md#custody-setting
6363
SAMPLES_PER_SLOT* = 8
6464
CUSTODY_REQUIREMENT* = 4
6565
NUMBER_OF_CUSTODY_GROUPS* = 128
@@ -96,7 +96,7 @@ type
9696
type
9797
DataColumn* = List[KzgCell, Limit(MAX_BLOB_COMMITMENTS_PER_BLOCK)]
9898

99-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/fulu/das-core.md#datacolumnsidecar
99+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/fulu/das-core.md#datacolumnsidecar
100100
DataColumnSidecar* = object
101101
index*: ColumnIndex # Index of column in extended matrix
102102
column*: DataColumn

beacon_chain/spec/datatypes/phase0.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ type
221221
deposits*: List[Deposit, Limit MAX_DEPOSITS]
222222
voluntary_exits*: List[TrustedSignedVoluntaryExit, Limit MAX_VOLUNTARY_EXITS]
223223

224-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#signedbeaconblock
224+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#signedbeaconblock
225225
SignedBeaconBlock* = object
226226
message*: BeaconBlock
227227
signature*: ValidatorSig

beacon_chain/spec/forks.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ func compute_fork_data_root*(current_version: Version,
16791679
genesis_validators_root: genesis_validators_root
16801680
))
16811681

1682-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#compute_fork_digest
1682+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/phase0/beacon-chain.md#compute_fork_digest
16831683
func compute_fork_digest*(current_version: Version,
16841684
genesis_validators_root: Eth2Digest): ForkDigest =
16851685
## Return the 4-byte fork digest for the ``current_version`` and

beacon_chain/spec/helpers.nim

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func get_seed*(state: ForkyBeaconState, epoch: Epoch, domain_type: DomainType):
203203
epoch + EPOCHS_PER_HISTORICAL_VECTOR - MIN_SEED_LOOKAHEAD - 1)
204204
state.get_seed(epoch, domain_type, mix)
205205

206-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#add_flag
206+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/altair/beacon-chain.md#add_flag
207207
func add_flag*(flags: ParticipationFlags, flag_index: TimelyFlag): ParticipationFlags =
208208
let flag = ParticipationFlags(1'u8 shl ord(flag_index))
209209
flags or flag
@@ -384,7 +384,7 @@ func contextEpoch*(bootstrap: ForkyLightClientBootstrap): Epoch =
384384
func contextEpoch*(update: SomeForkyLightClientUpdate): Epoch =
385385
update.attested_header.beacon.slot.epoch
386386

387-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/bellatrix/beacon-chain.md#is_merge_transition_complete
387+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/bellatrix/beacon-chain.md#is_merge_transition_complete
388388
func is_merge_transition_complete*(
389389
state: bellatrix.BeaconState | capella.BeaconState | deneb.BeaconState |
390390
electra.BeaconState | fulu.BeaconState): bool =
@@ -422,7 +422,7 @@ func is_merge_transition_block(
422422
not is_merge_transition_complete(state) and
423423
body.execution_payload != defaultExecutionPayload
424424

425-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/bellatrix/beacon-chain.md#is_execution_enabled
425+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/bellatrix/beacon-chain.md#is_execution_enabled
426426
func is_execution_enabled*(
427427
state: bellatrix.BeaconState | capella.BeaconState | deneb.BeaconState |
428428
electra.BeaconState | fulu.BeaconState,

beacon_chain/spec/network.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func getBlobSidecarTopic*(forkDigest: ForkDigest,
106106
subnet_id: BlobId): string =
107107
eth2Prefix(forkDigest) & "blob_sidecar_" & $subnet_id & "/ssz_snappy"
108108

109-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/deneb/validator.md#sidecar
109+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3/specs/deneb/validator.md#sidecar
110110
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/validator.md#sidecar
111111
func compute_subnet_for_blob_sidecar*(
112112
cfg: RuntimeConfig, slot: Slot, blob_index: BlobIndex): BlobId =

0 commit comments

Comments
 (0)