pool: lint fix

This commit is contained in:
emailtovamos 2024-09-04 04:46:45 +01:00
parent 5f398db90a
commit 706a24eb2c
2 changed files with 1 additions and 6 deletions

@ -198,10 +198,6 @@ func (config *Config) sanitize() Config {
log.Warn("Sanitizing invalid txpool global queue", "provided", conf.GlobalQueue, "updated", DefaultConfig.GlobalQueue)
conf.GlobalQueue = DefaultConfig.GlobalQueue
}
if conf.Pool2Slots < 0 {
log.Warn("Sanitizing invalid txpool pool 2 slots", "provided", conf.Pool2Slots, "updated", DefaultConfig.Pool2Slots)
conf.Pool2Slots = DefaultConfig.Pool2Slots
}
if conf.Pool3Slots < 1 {
log.Warn("Sanitizing invalid txpool pool 3 slots", "provided", conf.Pool3Slots, "updated", DefaultConfig.Pool3Slots)
conf.Pool3Slots = DefaultConfig.Pool3Slots
@ -2214,7 +2210,7 @@ func (pool *LegacyPool) transferTransactions() {
log.Debug("Will attempt to transfer from pool3 to pool2", "transactions", extraTransactions)
tx := pool.localBufferPool.Flush(int(extraTransactions))
tx := pool.localBufferPool.Flush(extraTransactions)
if len(tx) == 0 {
return
}

@ -2306,7 +2306,6 @@ func TestTransferTransactions(t *testing.T) {
if queue != 1 {
t.Errorf("queued transactions mismatched: have %d, want %d", queue, 1)
}
}
// Tests that the pool rejects replacement dynamic fee transactions that don't