Skip to content

Commit a081130

Browse files
authored
core/txpool: fix typos (#28213)
fix(core/txpool): fix typos
1 parent 614804b commit a081130

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

core/txpool/blobpool/evictheap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type evictHeap struct {
4444
index map[common.Address]int // Indices into the heap for replacements
4545
}
4646

47-
// newPriceHeap creates a new heap of cheapets accounts in the blob pool to evict
47+
// newPriceHeap creates a new heap of cheapest accounts in the blob pool to evict
4848
// from in case of over saturation.
4949
func newPriceHeap(basefee *uint256.Int, blobfee *uint256.Int, index *map[common.Address][]*blobTxMeta) *evictHeap {
5050
heap := &evictHeap{

core/txpool/blobpool/limbo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (l *limbo) push(tx *types.Transaction, block uint64) error {
143143
return errors.New("already tracked blob transaction")
144144
}
145145
if err := l.setAndIndex(tx, block); err != nil {
146-
log.Error("Failed to set and index liboed blobs", "tx", tx, "err", err)
146+
log.Error("Failed to set and index limboed blobs", "tx", tx, "err", err)
147147
return err
148148
}
149149
return nil
@@ -191,7 +191,7 @@ func (l *limbo) update(txhash common.Hash, block uint64) {
191191
log.Trace("Blob transaction unchanged in limbo", "tx", txhash, "block", block)
192192
return
193193
}
194-
// Retrieve the old blobs from the data store and write tehm back with a new
194+
// Retrieve the old blobs from the data store and write them back with a new
195195
// block number. IF anything fails, there's not much to do, go on.
196196
item, err := l.getAndDrop(id)
197197
if err != nil {

core/txpool/blobpool/priority.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
var log2_1_125 = math.Log2(1.125)
2828

2929
// evictionPriority calculates the eviction priority based on the algorithm
30-
// described in the BlobPool docs for a both fee components.
30+
// described in the BlobPool docs for both fee components.
3131
//
3232
// This method takes about 8ns on a very recent laptop CPU, recalculating about
3333
// 125 million transaction priority values per second.

core/txpool/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ var (
5252
ErrOversizedData = errors.New("oversized data")
5353

5454
// ErrFutureReplacePending is returned if a future transaction replaces a pending
55-
// transaction. Future transactions should only be able to replace other future transactions.
55+
// one. Future transactions should only be able to replace other future transactions.
5656
ErrFutureReplacePending = errors.New("future transaction tries to replace pending")
5757
)

core/txpool/legacypool/legacypool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ func (pool *LegacyPool) promoteTx(addr common.Address, hash common.Hash, tx *typ
901901
}
902902

903903
// addLocals enqueues a batch of transactions into the pool if they are valid, marking the
904-
// senders as a local ones, ensuring they go around the local pricing constraints.
904+
// senders as local ones, ensuring they go around the local pricing constraints.
905905
//
906906
// This method is used to add transactions from the RPC API and performs synchronous pool
907907
// reorganization and event propagation.

core/txpool/txpool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type TxPool struct {
7070
reservations map[common.Address]SubPool // Map with the account to pool reservations
7171
reserveLock sync.Mutex // Lock protecting the account reservations
7272

73-
subs event.SubscriptionScope // Subscription scope to unscubscribe all on shutdown
73+
subs event.SubscriptionScope // Subscription scope to unsubscribe all on shutdown
7474
quit chan chan error // Quit channel to tear down the head updater
7575
}
7676

@@ -404,7 +404,7 @@ func (p *TxPool) Locals() []common.Address {
404404
}
405405

406406
// Status returns the known status (unknown/pending/queued) of a transaction
407-
// identified by their hashes.
407+
// identified by its hash.
408408
func (p *TxPool) Status(hash common.Hash) TxStatus {
409409
for _, subpool := range p.subpools {
410410
if status := subpool.Status(hash); status != TxStatusUnknown {

core/txpool/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types
114114
if sidecar == nil {
115115
return fmt.Errorf("missing sidecar in blob transaction")
116116
}
117-
// Ensure the number of items in the blob transaction and vairous side
117+
// Ensure the number of items in the blob transaction and various side
118118
// data match up before doing any expensive validations
119119
hashes := tx.BlobHashes()
120120
if len(hashes) == 0 {

0 commit comments

Comments
 (0)