Skip to content

Commit 614804b

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func (pool *LegacyPool) Close() error {
406406
}
407407

408408
// Reset implements txpool.SubPool, allowing the legacy pool's internal state to be
409-
// kept in sync with the main transacion pool's internal state.
409+
// kept in sync with the main transaction pool's internal state.
410410
func (pool *LegacyPool) Reset(oldHead, newHead *types.Header) {
411411
wait := pool.requestReset(oldHead, newHead)
412412
<-wait
@@ -637,7 +637,7 @@ func (pool *LegacyPool) validateTx(tx *types.Transaction, local bool) error {
637637
// pending or queued one, it overwrites the previous transaction if its price is higher.
638638
//
639639
// If a newly added transaction is marked as local, its sending account will be
640-
// be added to the allowlist, preventing any associated transaction from being dropped
640+
// added to the allowlist, preventing any associated transaction from being dropped
641641
// out of the pool due to pricing constraints.
642642
func (pool *LegacyPool) add(tx *types.Transaction, local bool) (replaced bool, err error) {
643643
// If the transaction is already known, discard it
@@ -943,7 +943,7 @@ func (pool *LegacyPool) addRemoteSync(tx *types.Transaction) error {
943943
}
944944

945945
// Add enqueues a batch of transactions into the pool if they are valid. Depending
946-
// on the local flag, full pricing contraints will or will not be applied.
946+
// on the local flag, full pricing constraints will or will not be applied.
947947
//
948948
// If sync is set, the method will block until all internal maintenance related
949949
// to the add is finished. Only use this during tests for determinism!

core/txpool/validation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ type ValidationOptionsWithState struct {
182182
// be rejected once the number of remaining slots reaches zero.
183183
UsedAndLeftSlots func(addr common.Address) (int, int)
184184

185-
// ExistingExpenditure is a mandatory callback to retrieve the cummulative
185+
// ExistingExpenditure is a mandatory callback to retrieve the cumulative
186186
// cost of the already pooled transactions to check for overdrafts.
187187
ExistingExpenditure func(addr common.Address) *big.Int
188188

@@ -237,7 +237,7 @@ func ValidateTransactionWithState(tx *types.Transaction, signer types.Signer, op
237237
return fmt.Errorf("%w: balance %v, queued cost %v, tx cost %v, overshot %v", core.ErrInsufficientFunds, balance, spent, cost, new(big.Int).Sub(need, balance))
238238
}
239239
// Transaction takes a new nonce value out of the pool. Ensure it doesn't
240-
// overflow the number of permitted transactions from a single accoun
240+
// overflow the number of permitted transactions from a single account
241241
// (i.e. max cancellable via out-of-bound transaction).
242242
if used, left := opts.UsedAndLeftSlots(from); left <= 0 {
243243
return fmt.Errorf("%w: pooled %d txs", ErrAccountLimitExceeded, used)

0 commit comments

Comments
 (0)