aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_list.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2017-09-04 17:48:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-04 17:48:36 +0800
commit1901521ed0423a5feaadd3635b10783c5a998151 (patch)
treef0fce9b8b2ab34a94b684f6e74f8b4318e674978 /core/tx_list.go
parent23b51a68cbdd637824be906c9354a0b59c57491b (diff)
downloaddexon-1901521ed0423a5feaadd3635b10783c5a998151.tar
dexon-1901521ed0423a5feaadd3635b10783c5a998151.tar.gz
dexon-1901521ed0423a5feaadd3635b10783c5a998151.tar.bz2
dexon-1901521ed0423a5feaadd3635b10783c5a998151.tar.lz
dexon-1901521ed0423a5feaadd3635b10783c5a998151.tar.xz
dexon-1901521ed0423a5feaadd3635b10783c5a998151.tar.zst
dexon-1901521ed0423a5feaadd3635b10783c5a998151.zip
core: Fix flaw where underpriced locals were removed (#15081)
* core: Fix flaw where underpriced locals were removed * core: minor code cleanups for tx pool tests
Diffstat (limited to 'core/tx_list.go')
-rw-r--r--core/tx_list.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/tx_list.go b/core/tx_list.go
index 0d87c20bc..1087970fa 100644
--- a/core/tx_list.go
+++ b/core/tx_list.go
@@ -435,6 +435,7 @@ func (l *txPricedList) Cap(threshold *big.Int, local *accountSet) types.Transact
}
// Stop the discards if we've reached the threshold
if tx.GasPrice().Cmp(threshold) >= 0 {
+ save = append(save, tx)
break
}
// Non stale transaction found, discard unless local