aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_bumpfee.py
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-12-01 09:46:44 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2020-01-03 18:22:56 +0000
commitbd8c6f12e805115b5f8f7b608061008027f4a793 (patch)
treee34a33636675f2d2413d73a12e987a6ddb0cca58 /test/functional/wallet_bumpfee.py
parent8afa602f308ef003bb6893718eae1fe5a830690c (diff)
downloadbitcoin-bd8c6f12e805115b5f8f7b608061008027f4a793.tar.xz
Fix origfee return for bumpfee with feerate arg
Github-Pull: #17643 Rebased-From: 02afb0c550dc8529918460c845d1da3adf236eed
Diffstat (limited to 'test/functional/wallet_bumpfee.py')
-rwxr-xr-xtest/functional/wallet_bumpfee.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py
index 89838ff058..c11305ebaf 100755
--- a/test/functional/wallet_bumpfee.py
+++ b/test/functional/wallet_bumpfee.py
@@ -100,7 +100,8 @@ def test_simple_bumpfee_succeeds(self, mode, rbf_node, peer_node, dest_address):
else:
bumped_tx = rbf_node.bumpfee(rbfid)
assert_equal(bumped_tx["errors"], [])
- assert bumped_tx["fee"] - abs(rbftx["fee"]) > 0
+ assert bumped_tx["fee"] > -rbftx["fee"]
+ assert_equal(bumped_tx["origfee"], -rbftx["fee"])
# check that bumped_tx propagates, original tx was evicted and has a wallet conflict
self.sync_mempools((rbf_node, peer_node))
assert bumped_tx["txid"] in rbf_node.getrawmempool()