Skip to content

Commit 904318c

Browse files
authored
automated consensus spec URL updating to v1.5.0-alpha.4 (#6483)
1 parent 2e40a40 commit 904318c

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

+132
-132
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.5.0-alpha.3/specs/bellatrix/beacon-chain.md#beaconstate
133+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/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.5.0-alpha.3/specs/phase0/fork-choice.md#fork-choice
30+
## https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/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/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.5.0-alpha.3/specs/bellatrix/beacon-chain.md#testing
1181+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/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.5.0-alpha.3/sync/optimistic.md#helpers
1975+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/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/spec_cache.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ iterator get_beacon_committee*(
5353
committees_per_slot * SLOTS_PER_EPOCH
5454
): yield (index_in_committee, idx)
5555

56-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/phase0/beacon-chain.md#get_beacon_committee
56+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/phase0/beacon-chain.md#get_beacon_committee
5757
func get_beacon_committee*(
5858
shufflingRef: ShufflingRef, slot: Slot, committee_index: CommitteeIndex):
5959
seq[ValidatorIndex] =

beacon_chain/consensus_object_pools/sync_committee_msg_pool.nim

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

365365
proc isEpochLeadTime*(
366366
pool: SyncCommitteeMsgPool, epochsToSyncPeriod: uint64): bool =
367-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/altair/validator.md#sync-committee-subnet-stability
367+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/altair/validator.md#sync-committee-subnet-stability
368368
# This ensures a uniform distribution without requiring additional state:
369369
# (1/4) = 1/4, 4 slots out
370370
# (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.5.0-alpha.3/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

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

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ proc update_justified(
109109
self.update_justified(dag, blck, justified.epoch)
110110
ok()
111111

112-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/phase0/fork-choice.md#update_checkpoints
112+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/phase0/fork-choice.md#update_checkpoints
113113
proc update_checkpoints(
114114
self: var Checkpoints, dag: ChainDAGRef,
115115
checkpoints: FinalityCheckpoints): FcResult[void] =

beacon_chain/gossip_processing/block_processor.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ proc processBlock(
840840
# - MUST NOT optimistically import the block.
841841
# - MUST NOT apply the block to the fork choice store.
842842
# - MAY queue the block for later processing.
843-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/sync/optimistic.md#execution-engine-errors
843+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/sync/optimistic.md#execution-engine-errors
844844
await sleepAsync(chronos.seconds(1))
845845
self[].enqueueBlock(
846846
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
@@ -303,7 +303,7 @@ template validateBeaconBlockBellatrix(
303303
#
304304
# `is_merge_transition_complete(state)` tests for
305305
# `state.latest_execution_payload_header != ExecutionPayloadHeader()`, while
306-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/bellatrix/beacon-chain.md#block-processing
306+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/bellatrix/beacon-chain.md#block-processing
307307
# shows that `state.latest_execution_payload_header` being default or not is
308308
# exactly equivalent to whether that block's execution payload is default or
309309
# not, so test cached block information rather than reconstructing a state.
@@ -1187,7 +1187,7 @@ proc validateAggregate*(
11871187

11881188
ok((attesting_indices, sig))
11891189

1190-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/capella/p2p-interface.md#bls_to_execution_change
1190+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/capella/p2p-interface.md#bls_to_execution_change
11911191
proc validateBlsToExecutionChange*(
11921192
pool: ValidatorChangePool, batchCrypto: ref BatchCrypto,
11931193
signed_address_change: SignedBLSToExecutionChange,

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 7 additions & 7 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.5.0-alpha.3/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/configs/README.md
9898
*/
9999
ETH_RESULT_USE_CHECK
100100
ETHConsensusConfig *_Nullable 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.5.0-alpha.3/specs/bellatrix/beacon-chain.md#beaconstate
154+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/bellatrix/beacon-chain.md#beaconstate
155155
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/capella/beacon-chain.md#beaconstate
156-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/configs/README.md
156+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/configs/README.md
157157
*/
158158
ETH_RESULT_USE_CHECK
159159
ETHBeaconState *_Nullable 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.5.0-alpha.3/specs/altair/light-client/light-client.md
329-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
328+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/altair/light-client/light-client.md
329+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
330330
*/
331331
ETH_RESULT_USE_CHECK
332332
ETHLightClientStore *_Nullable ETHLightClientStoreCreateFromBootstrap(
@@ -579,7 +579,7 @@ typedef struct ETHLightClientHeader ETHLightClientHeader;
579579
*
580580
* @return Latest finalized header.
581581
*
582-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
582+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
583583
*/
584584
ETH_RESULT_USE_CHECK
585585
const ETHLightClientHeader *ETHLightClientStoreGetFinalizedHeader(
@@ -598,7 +598,7 @@ const ETHLightClientHeader *ETHLightClientStoreGetFinalizedHeader(
598598
* @return Whether or not the next sync committee is currently known.
599599
*
600600
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/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.3/specs/altair/light-client/light-client.md
601+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4/specs/altair/light-client/light-client.md
602602
*/
603603
ETH_RESULT_USE_CHECK
604604
bool ETHLightClientStoreIsNextSyncCommitteeKnown(const ETHLightClientStore *store);

0 commit comments

Comments
 (0)