From c8f241ce1541da551ee6229b30d5d61baf78cc59 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Tue, 10 Mar 2026 21:15:06 +0800 Subject: [PATCH] docs(core/txpool/legacypool): fix typos #28258 (#2126) --- core/txpool/legacypool/lending_tx_list.go | 4 ++-- core/txpool/legacypool/list.go | 4 ++-- core/txpool/legacypool/order_tx_list.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/txpool/legacypool/lending_tx_list.go b/core/txpool/legacypool/lending_tx_list.go index f0fad3d7cb..fdb70c95db 100644 --- a/core/txpool/legacypool/lending_tx_list.go +++ b/core/txpool/legacypool/lending_tx_list.go @@ -151,7 +151,7 @@ func (m *lendingtxSortedMap) Remove(nonce uint64) bool { // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (m *lendingtxSortedMap) Ready(start uint64) types.LendingTransactions { // Short circuit if no transactions are available @@ -267,7 +267,7 @@ func (l *lendingtxList) Remove(tx *types.LendingTransaction) (bool, types.Lendin // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (l *lendingtxList) Ready(start uint64) types.LendingTransactions { return l.txs.Ready(start) diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index bdc6eab00d..6258917c87 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -207,7 +207,7 @@ func (m *sortedMap) Remove(nonce uint64) bool { // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (m *sortedMap) Ready(start uint64) types.Transactions { // Short circuit if no transactions are available @@ -432,7 +432,7 @@ func (l *list) Remove(tx *types.Transaction) (bool, types.Transactions) { // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (l *list) Ready(start uint64) types.Transactions { txs := l.txs.Ready(start) diff --git a/core/txpool/legacypool/order_tx_list.go b/core/txpool/legacypool/order_tx_list.go index 152dacea24..77752e9ab3 100644 --- a/core/txpool/legacypool/order_tx_list.go +++ b/core/txpool/legacypool/order_tx_list.go @@ -151,7 +151,7 @@ func (m *ordertxSortedMap) Remove(nonce uint64) bool { // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (m *ordertxSortedMap) Ready(start uint64) types.OrderTransactions { // Short circuit if no transactions are available @@ -267,7 +267,7 @@ func (l *ordertxList) Remove(tx *types.OrderTransaction) (bool, types.OrderTrans // removed from the list. // // Note, all transactions with nonces lower than start will also be returned to -// prevent getting into and invalid state. This is not something that should ever +// prevent getting into an invalid state. This is not something that should ever // happen but better to be self correcting than failing! func (l *ordertxList) Ready(start uint64) types.OrderTransactions { return l.txs.Ready(start)