From f4bad204471e10fd9aafbae2be5a4b1127c9347f Mon Sep 17 00:00:00 2001 From: clonefetch <166312854+clonefetch@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:06:12 +0800 Subject: [PATCH] docs: remove repetitive words (#2381) --- accounts/external/backend.go | 2 +- cmd/geth/snapshot.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/external/backend.go b/accounts/external/backend.go index 84f33d237..12de26b09 100644 --- a/accounts/external/backend.go +++ b/accounts/external/backend.go @@ -163,7 +163,7 @@ func (api *ExternalSigner) SignData(account accounts.Account, mimeType string, d hexutil.Encode(data)); err != nil { return nil, err } - // If V is on 27/28-form, convert to to 0/1 for Clique and Parlia + // If V is on 27/28-form, convert to 0/1 for Clique and Parlia if (mimeType == accounts.MimetypeClique || mimeType == accounts.MimetypeParlia) && (res[64] == 27 || res[64] == 28) { res[64] -= 27 // Transform V from 27/28 to 0/1 for Clique and Parlia use } diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index 48a1ae0d1..d00fc9523 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -92,7 +92,7 @@ WARNING: it's only supported in hash mode(--state.scheme=hash)". geth offline prune-block for block data in ancientdb. The amount of blocks expected for remaining after prune can be specified via block-amount-reserved in this command, will prune and only remain the specified amount of old block data in ancientdb. -the brief workflow is to backup the the number of this specified amount blocks backward in original ancientdb +the brief workflow is to backup the number of this specified amount blocks backward in original ancientdb into new ancient_backup, then delete the original ancientdb dir and rename the ancient_backup to original one for replacement, finally assemble the statedb and new ancientDb together. The purpose of doing it is because the block data will be moved into the ancient store when it