From 2d6a07b798f1d700b87cd78285d7d110da58158e Mon Sep 17 00:00:00 2001 From: hadv Date: Thu, 3 Jan 2019 16:57:35 +0700 Subject: [PATCH] core: simplify condition for tnx replacement in the pool --- core/tx_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tx_list.go b/core/tx_list.go index 57abc51486..42c4e21321 100644 --- a/core/tx_list.go +++ b/core/tx_list.go @@ -256,7 +256,7 @@ func (l *txList) Add(tx *types.Transaction, priceBump uint64) (bool, *types.Tran // Have to ensure that the new gas price is higher than the old gas // price as well as checking the percentage threshold to ensure that // this is accurate for low (Wei-level) gas price replacements - if old.GasPrice().Cmp(tx.GasPrice()) >= 0 || threshold.Cmp(tx.GasPrice()) > 0 { + if threshold.Cmp(tx.GasPrice()) >= 0 { return false, nil } }