Skip to content

Commit a722adb

Browse files
authored
core/txpool: remove unused parameter local (#30871)
1 parent 08e6bdb commit a722adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ func (pool *LegacyPool) validateTxBasics(tx *types.Transaction, local bool) erro
626626

627627
// validateTx checks whether a transaction is valid according to the consensus
628628
// rules and adheres to some heuristic limits of the local node (price and size).
629-
func (pool *LegacyPool) validateTx(tx *types.Transaction, local bool) error {
629+
func (pool *LegacyPool) validateTx(tx *types.Transaction) error {
630630
opts := &txpool.ValidationOptionsWithState{
631631
State: pool.currentState,
632632

@@ -682,7 +682,7 @@ func (pool *LegacyPool) add(tx *types.Transaction, local bool) (replaced bool, e
682682
isLocal := local || pool.locals.containsTx(tx)
683683

684684
// If the transaction fails basic validation, discard it
685-
if err := pool.validateTx(tx, isLocal); err != nil {
685+
if err := pool.validateTx(tx); err != nil {
686686
log.Trace("Discarding invalid transaction", "hash", hash, "err", err)
687687
invalidTxMeter.Mark(1)
688688
return false, err

0 commit comments

Comments
 (0)