Skip to content

Commit 276972c

Browse files
committed
wallet_bumpfee.py: Make sure coin selection produces change
1 parent 3800ca6 commit 276972c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/wallet_bumpfee.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ def test_unconfirmed_not_spendable(rbf_node, rbf_node_address):
260260

261261

262262
def test_bumpfee_metadata(rbf_node, dest_address):
263-
rbfid = rbf_node.sendtoaddress(dest_address, Decimal("0.00100000"), "comment value", "to value")
263+
assert(rbf_node.getbalance() < 49)
264+
rbf_node.generatetoaddress(101, rbf_node.getnewaddress())
265+
rbfid = rbf_node.sendtoaddress(dest_address, 49, "comment value", "to value")
264266
bumped_tx = rbf_node.bumpfee(rbfid)
265267
bumped_wtx = rbf_node.gettransaction(bumped_tx["txid"])
266268
assert_equal(bumped_wtx["comment"], "comment value")

0 commit comments

Comments
 (0)