aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-08 18:45:52 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-11-08 18:45:52 +0800
commit9619a610248e9630968ba1d9be8e214b645c9c55 (patch)
tree5844cfbee9a0ac5750dcc803cea461f75969f74e /core/tx_pool.go
parentbfdc0fa3622d7c3b421d2f5a6dda5746be41bfde (diff)
downloadgo-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.gz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.bz2
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.lz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.xz
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.zst
go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.zip
all: gofmt -w -s (#15419)
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)
}
}