Skip to content

Commit ea0fcfc

Browse files
colinlyguojorgemmsilva
authored andcommitted
core/txpool: fix typo (ethereum#29036)
* fix typos * address comments
1 parent 6a67121 commit ea0fcfc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

core/state_transition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (result *ExecutionResult) Revert() []byte {
6767
}
6868

6969
// IntrinsicGas computes the 'intrinsic gas' for a message with the given data.
70-
func IntrinsicGas(data []byte, accessList types.AccessList, isContractCreation bool, isHomestead, isEIP2028 bool, isEIP3860 bool) (uint64, error) {
70+
func IntrinsicGas(data []byte, accessList types.AccessList, isContractCreation bool, isHomestead, isEIP2028, isEIP3860 bool) (uint64, error) {
7171
// Set the starting gas for the raw transaction
7272
var gas uint64
7373
if isContractCreation && isHomestead {

core/txpool/blobpool/blobpool.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func (p *BlobPool) Init(gasTip uint64, head *types.Header, reserve txpool.Addres
360360
}
361361
}
362362
// Initialize the state with head block, or fallback to empty one in
363-
// case the head state is not available(might occur when node is not
363+
// case the head state is not available (might occur when node is not
364364
// fully synced).
365365
state, err := p.chain.StateAt(head.Root)
366366
if err != nil {
@@ -540,7 +540,7 @@ func (p *BlobPool) recheck(addr common.Address, inclusions map[common.Hash]uint6
540540
}
541541
delete(p.index, addr)
542542
delete(p.spent, addr)
543-
if inclusions != nil { // only during reorgs will the heap will be initialized
543+
if inclusions != nil { // only during reorgs will the heap be initialized
544544
heap.Remove(p.evict, p.evict.index[addr])
545545
}
546546
p.reserve(addr, false)
@@ -693,7 +693,7 @@ func (p *BlobPool) recheck(addr common.Address, inclusions map[common.Hash]uint6
693693
if len(txs) == 0 {
694694
delete(p.index, addr)
695695
delete(p.spent, addr)
696-
if inclusions != nil { // only during reorgs will the heap will be initialized
696+
if inclusions != nil { // only during reorgs will the heap be initialized
697697
heap.Remove(p.evict, p.evict.index[addr])
698698
}
699699
p.reserve(addr, false)
@@ -809,7 +809,7 @@ func (p *BlobPool) Reset(oldHead, newHead *types.Header) {
809809
}
810810
}
811811
// Recheck the account's pooled transactions to drop included and
812-
// invalidated one
812+
// invalidated ones
813813
p.recheck(addr, inclusions)
814814
}
815815
if len(adds) > 0 {
@@ -1226,7 +1226,7 @@ func (p *BlobPool) Add(txs []*types.Transaction, local bool, sync bool) []error
12261226
// consensus validity and pool restrictions).
12271227
func (p *BlobPool) add(tx *types.Transaction) (err error) {
12281228
// The blob pool blocks on adding a transaction. This is because blob txs are
1229-
// only even pulled form the network, so this method will act as the overload
1229+
// only even pulled from the network, so this method will act as the overload
12301230
// protection for fetches.
12311231
waitStart := time.Now()
12321232
p.lock.Lock()
@@ -1554,7 +1554,7 @@ func (p *BlobPool) updateStorageMetrics() {
15541554
}
15551555

15561556
// updateLimboMetrics retrieves a bunch of stats from the limbo store and pushes
1557-
// // them out as metrics.
1557+
// them out as metrics.
15581558
func (p *BlobPool) updateLimboMetrics() {
15591559
stats := p.limbo.store.Infos()
15601560

core/txpool/legacypool/legacypool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (pool *LegacyPool) Init(gasTip uint64, head *types.Header, reserve txpool.A
296296
pool.gasTip.Store(uint256.NewInt(gasTip))
297297

298298
// Initialize the state with head block, or fallback to empty one in
299-
// case the head state is not available(might occur when node is not
299+
// case the head state is not available (might occur when node is not
300300
// fully synced).
301301
statedb, err := pool.chain.StateAt(head.Root)
302302
if err != nil {

0 commit comments

Comments
 (0)