diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2019-03-05 11:04:32 -0500 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2019-03-05 11:13:36 -0500 |
commit | 276972cb95ba944a7a4b1858a08d333962261396 (patch) | |
tree | 5ecf8f130c660a51075a50da2c97d8861af6a5be | |
parent | 3800ca606896eb2d7b20816f3040f61ef0c8356f (diff) | |
download | bitcoin-276972cb95ba944a7a4b1858a08d333962261396.tar.xz |
wallet_bumpfee.py: Make sure coin selection produces change
-rwxr-xr-x | test/functional/wallet_bumpfee.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py index 7d3d9b61e2..3bef70f0a0 100755 --- a/test/functional/wallet_bumpfee.py +++ b/test/functional/wallet_bumpfee.py @@ -260,7 +260,9 @@ def test_unconfirmed_not_spendable(rbf_node, rbf_node_address): def test_bumpfee_metadata(rbf_node, dest_address): - rbfid = rbf_node.sendtoaddress(dest_address, Decimal("0.00100000"), "comment value", "to value") + assert(rbf_node.getbalance() < 49) + rbf_node.generatetoaddress(101, rbf_node.getnewaddress()) + rbfid = rbf_node.sendtoaddress(dest_address, 49, "comment value", "to value") bumped_tx = rbf_node.bumpfee(rbfid) bumped_wtx = rbf_node.gettransaction(bumped_tx["txid"]) assert_equal(bumped_wtx["comment"], "comment value") |