From 90cac8e4ca557b865ab1b3b8b2e6f279f11aaa4f Mon Sep 17 00:00:00 2001 From: liuyueyangxmu Date: Wed, 26 Nov 2025 17:30:22 +0800 Subject: [PATCH] chore: remove repetitive word in comment Signed-off-by: liuyueyangxmu --- core/rawdb/accessors_history_test.go | 2 +- core/txpool/blobpool/blobpool_test.go | 2 +- core/txpool/legacypool/legacypool_test.go | 2 +- core/types/tx_setcode.go | 2 +- docs/cli/snapshot_prune-block.md | 2 +- eth/protocols/eth/receipt.go | 2 +- internal/cli/snapshot.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/rawdb/accessors_history_test.go b/core/rawdb/accessors_history_test.go index 9fe1289902..6bf428f963 100644 --- a/core/rawdb/accessors_history_test.go +++ b/core/rawdb/accessors_history_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" ) -// TestDeleteStateHistoryIndex_WithoutBorReceipts tests if the the deletion of all +// TestDeleteStateHistoryIndex_WithoutBorReceipts tests if the deletion of all // history indexing data works and bor receipts aren't deleted despite having same // prefix for deletion. func TestDeleteStateHistoryIndex_WithoutBorReceipts(t *testing.T) { diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index ebcd6f00d2..984c27c600 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -1102,7 +1102,7 @@ func TestChangingSlotterSize(t *testing.T) { // Write the two safely sized txs to store. note: although the store is // configured for a blob count of 6, it can also support around ~1mb of call - // data - all this to say that we aren't using the the absolute largest shelf + // data - all this to say that we aren't using the absolute largest shelf // available. store.Put(blob1) store.Put(blob2) diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 5a6161781b..36b90fecfd 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -2777,7 +2777,7 @@ func TestSetCodeTransactions(t *testing.T) { }, }, { - // This test is analogous to the previous one, but the the replaced + // This test is analogous to the previous one, but the replaced // transaction is self-sponsored. name: "allow-tx-from-replaced-self-sponsor-authority", pending: 3, diff --git a/core/types/tx_setcode.go b/core/types/tx_setcode.go index b8e38ef1f7..a85c744cfe 100644 --- a/core/types/tx_setcode.go +++ b/core/types/tx_setcode.go @@ -113,7 +113,7 @@ func (a *SetCodeAuthorization) sigHash() common.Hash { }) } -// Authority recovers the the authorizing account of an authorization. +// Authority recovers the authorizing account of an authorization. func (a *SetCodeAuthorization) Authority() (common.Address, error) { sighash := a.sigHash() if !crypto.ValidateSignatureValues(a.V, a.R.ToBig(), a.S.ToBig(), true) { diff --git a/docs/cli/snapshot_prune-block.md b/docs/cli/snapshot_prune-block.md index b3ae3d9d4f..13c25b53d9 100644 --- a/docs/cli/snapshot_prune-block.md +++ b/docs/cli/snapshot_prune-block.md @@ -5,7 +5,7 @@ The ```bor snapshot prune-block``` command will prune historical blockchain data The brief workflow as below: -1. backup the the number of specified number of blocks backward in original ancientdb into new ancient_backup, +1. backup the number of specified number of blocks backward in original ancientdb into new ancient_backup, 2. then delete the original ancientdb dir and rename the ancient_backup to original one for replacement, 3. finally assemble the statedb and new ancientdb together. diff --git a/eth/protocols/eth/receipt.go b/eth/protocols/eth/receipt.go index f0bc6b1c49..5447e4f0bf 100644 --- a/eth/protocols/eth/receipt.go +++ b/eth/protocols/eth/receipt.go @@ -120,7 +120,7 @@ func (r *Receipt) decodeInnerList(s *rlp.Stream, readTxType, readBloom bool) err return s.ListEnd() } -// encodeForStorage produces the the storage encoding, i.e. the result matches +// encodeForStorage produces the storage encoding, i.e. the result matches // the RLP encoding of types.ReceiptForStorage. func (r *Receipt) encodeForStorage(w *rlp.EncoderBuffer) { list := w.List() diff --git a/internal/cli/snapshot.go b/internal/cli/snapshot.go index 62a3bd0aef..370de064dd 100644 --- a/internal/cli/snapshot.go +++ b/internal/cli/snapshot.go @@ -229,7 +229,7 @@ func (c *PruneBlockCommand) MarkDown() string { ` The brief workflow as below: -1. backup the the number of specified number of blocks backward in original ancientdb into new ancient_backup, +1. backup the number of specified number of blocks backward in original ancientdb into new ancient_backup, 2. then delete the original ancientdb dir and rename the ancient_backup to original one for replacement, 3. finally assemble the statedb and new ancientdb together.