diff options
author | Martin Holst Swende <martin@swende.se> | 2017-09-04 17:48:36 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-04 17:48:36 +0800 |
commit | 1901521ed0423a5feaadd3635b10783c5a998151 (patch) | |
tree | f0fce9b8b2ab34a94b684f6e74f8b4318e674978 /core/tx_list.go | |
parent | 23b51a68cbdd637824be906c9354a0b59c57491b (diff) | |
download | go-tangerine-1901521ed0423a5feaadd3635b10783c5a998151.tar.gz go-tangerine-1901521ed0423a5feaadd3635b10783c5a998151.tar.zst go-tangerine-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.go | 1 |
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 |