From af6affb5b3a2dfa41f05637a35e215d80d4910a1 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:37:38 +0800 Subject: [PATCH] Fix typos (#5835) * Fix typos * Update copyright year --- docs/e2store.md | 4 ++-- research/fakeee.nim | 2 +- scripts/signers/custom.sh | 4 ++-- tests/test_beacon_time.nim | 4 ++-- tests/test_keymanager_api.nim | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/e2store.md b/docs/e2store.md index 16712b5a1..b5797cef3 100644 --- a/docs/e2store.md +++ b/docs/e2store.md @@ -137,7 +137,7 @@ Each entry in the slot index is a fixed-length 8-byte two's complement signed in Only one entry per slot is supported, meaning that only one canonical history can be indexed this way. -A `SlotIndex` record may appear in a stand-alone file which by convention ends with `.e2i` - in this case, the offset is counted as if the index was appened to its corresponding data file - offsets are thus negative and counted from the end of the data file. In particular, if the index is simply appended to the data file, it does not change in contents. +A `SlotIndex` record may appear in a stand-alone file which by convention ends with `.e2i` - in this case, the offset is counted as if the index was appended to its corresponding data file - offsets are thus negative and counted from the end of the data file. In particular, if the index is simply appended to the data file, it does not change in contents. ### Reading @@ -219,7 +219,7 @@ The structure of the era file gives it the following properties: * the indices at the end are fixed-length: they can be used to discover the beginning of an era if the end of it is known * the start slot field of the state slot index idenfifies which era the group pertains to * the state in the era file is the end state after having applied all the blocks in the era and, if applicable, the block at the first slot - the `block_roots` entries in the state can be used to discover the digest of the blocks - either to verify the intergrity of the era file or to quickly load block roots without computing them. -* each group in the era file is full, indendent era file - groups can freely be split and combined +* each group in the era file is full, independent era file - groups can freely be split and combined ## Reading era files diff --git a/research/fakeee.nim b/research/fakeee.nim index dea7e8e30..63e5f1e70 100644 --- a/research/fakeee.nim +++ b/research/fakeee.nim @@ -42,7 +42,7 @@ proc setupEngineAPI*(server: RpcServer) = raise (ref InvalidRequest)( code: engineApiUnknownPayload, - msg: "Unkown payload" + msg: "Unknown payload" ) # https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/paris.md#engine_exchangetransitionconfigurationv1 diff --git a/scripts/signers/custom.sh b/scripts/signers/custom.sh index 13b0558b3..038b7cd40 100755 --- a/scripts/signers/custom.sh +++ b/scripts/signers/custom.sh @@ -1,6 +1,6 @@ #!/usr/bin/bash -# Copyright (c) 2023 Status Research & Development GmbH. +# Copyright (c) 2023-2024 Status Research & Development GmbH. # Licensed under either of: # - Apache License, version 2.0 # - MIT license @@ -34,7 +34,7 @@ KEYSTORES_DIR="${DATA_DIR}/validators_shares/$((SIGNER_NODE_IDX + 1))" # Here you need to launch your signer server process. # You must make sure that it will listen on the `$((BASE_REMOTE_SIGNER_PORT + SIGNER_NODE_IDX))` port. # The new process must be launched in the background. -# Preferrably, you will also create a log file in the `${DATA_DIR}/logs` directory. +# Preferably, you will also create a log file in the `${DATA_DIR}/logs` directory. # Here is an example way to achieve the above with the web3signer binary: # diff --git a/tests/test_beacon_time.nim b/tests/test_beacon_time.nim index 7318aeb01..a456d67f4 100644 --- a/tests/test_beacon_time.nim +++ b/tests/test_beacon_time.nim @@ -1,5 +1,5 @@ # beacon_chain -# Copyright (c) 2022 Status Research & Development GmbH +# Copyright (c) 2022-2024 Status Research & Development GmbH # Licensed and distributed under either of # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). @@ -21,7 +21,7 @@ suite "Beacon time": s0.start_beacon_time() == BeaconTime() s0.sync_committee_period() == SyncCommitteePeriod(0) - # Roundtrip far times we treat these as "Infinitiy" + # Roundtrip far times we treat these as "Infinity" FAR_FUTURE_SLOT.epoch.start_slot() == FAR_FUTURE_SLOT FAR_FUTURE_SLOT.sync_committee_period.start_slot() == FAR_FUTURE_SLOT FAR_FUTURE_EPOCH.start_slot().epoch() == FAR_FUTURE_EPOCH diff --git a/tests/test_keymanager_api.nim b/tests/test_keymanager_api.nim index 948b6b11f..7020f0836 100644 --- a/tests/test_keymanager_api.nim +++ b/tests/test_keymanager_api.nim @@ -332,7 +332,7 @@ proc startValidatorClient(basePort: int) {.async, thread.} = const password = "7465737470617373776f7264f09f9491" - # This is taken from the offical test vectors in test_keystores.nim + # This is taken from the official test vectors in test_keystores.nim secretBytes = hexToSeqByte "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" salt = hexToSeqByte "d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3" iv = hexToSeqByte "264daa3f303d7259501c93d997d84fe6"