Skip to content

Commit 7f5e96d

Browse files
authored
core/txpool: fix typo (#29031)
1 parent f4852b8 commit 7f5e96d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/txpool/blobpool/blobpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserve txpool.Addres
371371
}
372372
p.head, p.state = head, state
373373

374-
// Index all transactions on disk and delete anything inprocessable
374+
// Index all transactions on disk and delete anything unprocessable
375375
var fails []uint64
376376
index := func(id uint64, size uint32, blob []byte) {
377377
if p.parseTransaction(id, size, blob) != nil {

core/txpool/blobpool/blobpool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func makeTx(nonce uint64, gasTipCap uint64, gasFeeCap uint64, blobFeeCap uint64,
185185
return types.MustSignNewTx(key, types.LatestSigner(testChainConfig), blobtx)
186186
}
187187

188-
// makeUnsignedTx is a utility method to construct a random blob tranasaction
188+
// makeUnsignedTx is a utility method to construct a random blob transaction
189189
// without signing it.
190190
func makeUnsignedTx(nonce uint64, gasTipCap uint64, gasFeeCap uint64, blobFeeCap uint64) *types.BlobTx {
191191
return &types.BlobTx{
@@ -391,7 +391,7 @@ func TestOpenDrops(t *testing.T) {
391391
id, _ := store.Put(blob)
392392
filled[id] = struct{}{}
393393
}
394-
// Insert a sequence of transactions with partially passed nonces to veirfy
394+
// Insert a sequence of transactions with partially passed nonces to verify
395395
// that the included part of the set will get dropped (case 4).
396396
var (
397397
overlapper, _ = crypto.GenerateKey()

core/txpool/blobpool/evictheap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// transaction from each account to determine which account to evict from.
3131
//
3232
// The heap internally tracks a slice of cheapest transactions from each account
33-
// and a mapping from addresses to indices for direct removals/udates.
33+
// and a mapping from addresses to indices for direct removals/updates.
3434
//
3535
// The goal of the heap is to decide which account has the worst bottleneck to
3636
// evict transactions from.

core/txpool/blobpool/priority_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func BenchmarkDynamicFeeJumpCalculation(b *testing.B) {
6464
// Benchmarks how many priority recalculations can be done.
6565
func BenchmarkPriorityCalculation(b *testing.B) {
6666
// The basefee and blob fee is constant for all transactions across a block,
67-
// so we can assume theit absolute jump counts can be pre-computed.
67+
// so we can assume their absolute jump counts can be pre-computed.
6868
basefee := uint256.NewInt(17_200_000_000) // 17.2 Gwei is the 22.03.2023 zero-emission basefee, random number
6969
blobfee := uint256.NewInt(123_456_789_000) // Completely random, no idea what this will be
7070

0 commit comments

Comments
 (0)