aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/tx_pool.go')
-rw-r--r--core/tx_pool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tx_pool.go b/core/tx_pool.go
index 0f008ddc0..c3915575b 100644
--- a/core/tx_pool.go
+++ b/core/tx_pool.go
@@ -820,7 +820,7 @@ func (pool *TxPool) addTxsLocked(txs []*types.Transaction, local bool) []error {
// Only reprocess the internal state if something was actually added
if len(dirty) > 0 {
addrs := make([]common.Address, 0, len(dirty))
- for addr, _ := range dirty {
+ for addr := range dirty {
addrs = append(addrs, addr)
}
pool.promoteExecutables(addrs)
@@ -907,7 +907,7 @@ func (pool *TxPool) promoteExecutables(accounts []common.Address) {
// Gather all the accounts potentially needing updates
if accounts == nil {
accounts = make([]common.Address, 0, len(pool.queue))
- for addr, _ := range pool.queue {
+ for addr := range pool.queue {
accounts = append(accounts, addr)
}
}