Skip to content

Commit 6b8061b

Browse files
authored
automated consensus spec URL updating to v1.5.0-alpha.2 (#6279)
1 parent 1051c3c commit 6b8061b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+141
-141
lines changed

beacon_chain/beacon_chain_db_immutable.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ type
130130
current_sync_committee*: SyncCommittee # [New in Altair]
131131
next_sync_committee*: SyncCommittee # [New in Altair]
132132

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

beacon_chain/beacon_clock.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type
2727
## which blocks are valid - in particular, blocks are not valid if they
2828
## come from the future as seen from the local clock.
2929
##
30-
## https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/fork-choice.md#fork-choice
30+
## https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/phase0/fork-choice.md#fork-choice
3131
##
3232
# TODO consider NTP and network-adjusted timestamps as outlined here:
3333
# https://ethresear.ch/t/network-adjusted-timestamps/4187

beacon_chain/consensus_object_pools/attestation_pool.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ proc getBeaconHead*(
10381038
pool.dag.loadExecutionBlockHash(pool.dag.finalizedHead.blck)
10391039
.get(ZERO_HASH)
10401040

1041-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/fork_choice/safe-block.md#get_safe_execution_payload_hash
1041+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/fork_choice/safe-block.md#get_safe_execution_payload_hash
10421042
safeBlockRoot = pool.forkChoice.get_safe_beacon_block_root()
10431043
safeBlock = pool.dag.getBlockRef(safeBlockRoot)
10441044
safeExecutionBlockHash =

beacon_chain/consensus_object_pools/blockchain_dag.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ proc init*(T: type ChainDAGRef, cfg: RuntimeConfig, db: BeaconChainDB,
11781178
# should have `previous_version` set to `current_version` while
11791179
# this doesn't happen to be the case in network that go through
11801180
# regular hard-fork upgrades. See for example:
1181-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/bellatrix/beacon-chain.md#testing
1181+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/bellatrix/beacon-chain.md#testing
11821182
if stateFork.current_version != configFork.current_version:
11831183
error "State from database does not match network, check --network parameter",
11841184
tail = dag.tail, headRef, stateFork, configFork
@@ -1972,7 +1972,7 @@ proc pruneBlocksDAG(dag: ChainDAGRef) =
19721972
prunedHeads = hlen - dag.heads.len,
19731973
dagPruneDur = Moment.now() - startTick
19741974

1975-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/sync/optimistic.md#helpers
1975+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/sync/optimistic.md#helpers
19761976
func is_optimistic*(dag: ChainDAGRef, bid: BlockId): bool =
19771977
let blck =
19781978
if bid.slot <= dag.finalizedHead.slot:

beacon_chain/consensus_object_pools/sync_committee_msg_pool.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ proc produceSyncAggregate*(
349349

350350
proc isEpochLeadTime*(
351351
pool: SyncCommitteeMsgPool, epochsToSyncPeriod: uint64): bool =
352-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/validator.md#sync-committee-subnet-stability
352+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/altair/validator.md#sync-committee-subnet-stability
353353
# This ensures a uniform distribution without requiring additional state:
354354
# (1/4) = 1/4, 4 slots out
355355
# (3/4) * (1/3) = 1/4, 3 slots out

beacon_chain/el/merkle_minimal.nim

Lines changed: 1 addition & 1 deletion
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.4.0/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

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

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc update_justified(
113113
self.update_justified(dag, blck, justified.epoch)
114114
ok()
115115

116-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/fork-choice.md#update_checkpoints
116+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/phase0/fork-choice.md#update_checkpoints
117117
proc update_checkpoints(
118118
self: var Checkpoints, dag: ChainDAGRef,
119119
checkpoints: FinalityCheckpoints): FcResult[void] =
@@ -377,7 +377,7 @@ proc get_head*(self: var ForkChoice,
377377
self.checkpoints.justified.balances,
378378
self.checkpoints.proposer_boost_root)
379379

380-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/fork_choice/safe-block.md#get_safe_beacon_block_root
380+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/fork_choice/safe-block.md#get_safe_beacon_block_root
381381
func get_safe_beacon_block_root*(self: ForkChoice): Eth2Digest =
382382
# Use most recent justified block as a stopgap
383383
self.checkpoints.justified.checkpoint.root

beacon_chain/gossip_processing/block_processor.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ proc processBlock(
838838
# - MUST NOT optimistically import the block.
839839
# - MUST NOT apply the block to the fork choice store.
840840
# - MAY queue the block for later processing.
841-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/sync/optimistic.md#execution-engine-errors
841+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/sync/optimistic.md#execution-engine-errors
842842
await sleepAsync(chronos.seconds(1))
843843
self[].enqueueBlock(
844844
entry.src, entry.blck, entry.blobs, entry.resfut, entry.maybeFinalized,

beacon_chain/gossip_processing/gossip_validation.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ template validateBeaconBlockBellatrix(
283283
#
284284
# `is_merge_transition_complete(state)` tests for
285285
# `state.latest_execution_payload_header != ExecutionPayloadHeader()`, while
286-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/bellatrix/beacon-chain.md#block-processing
286+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/bellatrix/beacon-chain.md#block-processing
287287
# shows that `state.latest_execution_payload_header` being default or not is
288288
# exactly equivalent to whether that block's execution payload is default or
289289
# not, so test cached block information rather than reconstructing a state.
@@ -1031,7 +1031,7 @@ proc validateAggregate*(
10311031

10321032
return ok((attesting_indices, sig))
10331033

1034-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/capella/p2p-interface.md#bls_to_execution_change
1034+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/capella/p2p-interface.md#bls_to_execution_change
10351035
proc validateBlsToExecutionChange*(
10361036
pool: ValidatorChangePool, batchCrypto: ref BatchCrypto,
10371037
signed_address_change: SignedBLSToExecutionChange,

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 8 additions & 8 deletions
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.4.0/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/configs/README.md
9898
*/
9999
ETH_RESULT_USE_CHECK
100100
ETHConsensusConfig *ETHConsensusConfigCreateFromYaml(const char *configFileContent);
@@ -151,9 +151,9 @@ typedef struct ETHBeaconState ETHBeaconState;
151151
*
152152
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#beaconstate
153153
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#beaconstate
154-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/bellatrix/beacon-chain.md#beaconstate
155-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/capella/beacon-chain.md#beaconstate
156-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/configs/README.md
154+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/bellatrix/beacon-chain.md#beaconstate
155+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/capella/beacon-chain.md#beaconstate
156+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/configs/README.md
157157
*/
158158
ETH_RESULT_USE_CHECK
159159
ETHBeaconState *ETHBeaconStateCreateFromSsz(
@@ -325,8 +325,8 @@ typedef struct ETHLightClientStore ETHLightClientStore;
325325
*
326326
* @see https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Beacon/getLightClientBootstrap
327327
* @see https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Events/eventstream
328-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/light-client/light-client.md
329-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
328+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/altair/light-client/light-client.md
329+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
330330
*/
331331
ETH_RESULT_USE_CHECK
332332
ETHLightClientStore *ETHLightClientStoreCreateFromBootstrap(
@@ -597,8 +597,8 @@ const ETHLightClientHeader *ETHLightClientStoreGetFinalizedHeader(
597597
*
598598
* @return Whether or not the next sync committee is currently known.
599599
*
600-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
601-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/light-client/light-client.md
600+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
601+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/altair/light-client/light-client.md
602602
*/
603603
ETH_RESULT_USE_CHECK
604604
bool ETHLightClientStoreIsNextSyncCommitteeKnown(const ETHLightClientStore *store);

0 commit comments

Comments
 (0)