chore: remove repetitive words (#6219)

Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
careworry 2024-04-19 19:31:15 +08:00 committed by GitHub
parent 73738c702c
commit 2ec82fe3ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View File

@ -525,7 +525,7 @@ proc storeBlock(
# has been finalized - this speeds up forward sync - in the worst case
# that the claim is false, we will correct every time we process a block
# from an honest source (or when we're close to head).
# Occasionally we also send a payload to the the EL so that it can
# Occasionally we also send a payload to the EL so that it can
# progress in its own sync.
NewPayloadStatus.noResponse
else:

View File

@ -12,7 +12,7 @@
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#hash
#
# In Phase 0 the beacon chain is deployed with SHA256 (SHA2-256).
# Note that is is different from Keccak256 (often mistakenly called SHA3-256)
# Note that is different from Keccak256 (often mistakenly called SHA3-256)
# and SHA3-256.
#
# In execution, the default hash function is Keccak256,

View File

@ -328,7 +328,7 @@ proc state_transition*(
## given state must be of a lower slot, or, in case the `slotProcessed` flag
## is set, can be the slot state of the same slot as the block (where the
## slot state is the state without any block applied). To create a slot state,
## advance the state corresponding to the the parent block using
## advance the state corresponding to the parent block using
## `process_slots`.
##
## To run the state transition function in preparation for block production,

View File

@ -878,7 +878,7 @@ proc runBlockEventMonitor(service: BlockServiceRef,
plain = RestPlainResponse(status: resp.status,
contentType: resp.contentType, data: body)
reason = plain.getErrorMessage()
debug "Unable to to obtain events stream", code = resp.status,
debug "Unable to obtain events stream", code = resp.status,
reason = reason
Opt.none(HttpClientResponseRef)
except RestError as exc:

View File

@ -309,7 +309,7 @@ The state stores the block root of the latest `SLOTS_PER_HISTORICAL_ROOT` blocks
## Why include the state at all?
This is a tradeoff between being able to access state data such as validator keys and balances directly vs and recreating it by applying each block one by one from from genesis. Given an era file, it is possible to start processing the chain from there onwards.
This is a tradeoff between being able to access state data such as validator keys and balances directly vs and recreating it by applying each block one by one from genesis. Given an era file, it is possible to start processing the chain from there onwards.
## Why the weird file name?

View File

@ -48,7 +48,7 @@ proc runTest(
if hasPostState:
# The return value is the block rewards, which aren't tested here;
# the .expect() already handles the the validaty check.
# the .expect() already handles the validaty check.
discard state_transition(
defaultRuntimeConfig, fhPreState[], blck, cache, info, flags = {},
noRollback).expect("should apply block")

View File

@ -61,7 +61,7 @@ proc runTest(
flags = {skipStateRootValidation}, noRollback)
# The return value is the block rewards, which aren't tested here;
# the .expect() already handles the the validaty check.
# the .expect() already handles the validaty check.
discard res.expect("no failure when applying block " & $i)
else:
let
@ -72,7 +72,7 @@ proc runTest(
flags = {skipStateRootValidation}, noRollback)
# The return value is the block rewards, which aren't tested here;
# the .expect() already handles the the validaty check.
# the .expect() already handles the validaty check.
discard res.expect("no failure when applying block " & $i)
let postState = newClone(