Skip to content

Commit

Permalink
core/txpool/legacypool: respect nolocals-setting (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Dec 6, 2023
1 parent aa15df2 commit a30beeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,9 @@ func (pool *LegacyPool) addRemoteSync(tx *types.Transaction) error {

// addTxs attempts to queue a batch of transactions if they are valid.
func (pool *LegacyPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
// Do not treat as local if local transactions have been disabled
local = local && !pool.config.NoLocals

// Filter out known ones without obtaining the pool lock or recovering signatures
var (
errs = make([]error, len(txs))
Expand Down

0 comments on commit a30beeb

Please sign in to comment.