docs(core/txpool/legacypool): fix typos #28258 (#2126)

This commit is contained in:
Daniel Liu 2026-03-10 21:15:06 +08:00 committed by GitHub
parent d4a6f43ef2
commit c8f241ce15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)