aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_send.py
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2020-09-17 20:57:51 +0200
committerSjors Provoost <sjors@sprovoost.nl>2020-09-17 20:59:09 +0200
commit0fc1c685e1ca68ca8ed2b35f623bbe6a9fc36d66 (patch)
treedfefa94837e1574d504ba9f69032ead9969426be /test/functional/wallet_send.py
parentefc9b85e6f4aa431d308089874a18f0bbdcdd0fd (diff)
downloadbitcoin-0fc1c685e1ca68ca8ed2b35f623bbe6a9fc36d66.tar.xz
[rpc] send: fix parsing replaceable option
Diffstat (limited to 'test/functional/wallet_send.py')
-rwxr-xr-xtest/functional/wallet_send.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/wallet_send.py b/test/functional/wallet_send.py
index b64d2030a4..c5b02ff32a 100755
--- a/test/functional/wallet_send.py
+++ b/test/functional/wallet_send.py
@@ -328,8 +328,12 @@ class WalletSendTest(BitcoinTestFramework):
self.test_send(from_wallet=w0, to_wallet=w1, amount=1, inputs=[utxo1],add_to_wallet=False)
self.log.info("Replaceable...")
- self.test_send(from_wallet=w0, to_wallet=w1, amount=1, add_to_wallet=False, replaceable=True)
- self.test_send(from_wallet=w0, to_wallet=w1, amount=1, add_to_wallet=False, replaceable=False)
+ res = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, add_to_wallet=True, replaceable=True)
+ assert res["complete"]
+ assert_equal(self.nodes[0].gettransaction(res["txid"])["bip125-replaceable"], "yes")
+ res = self.test_send(from_wallet=w0, to_wallet=w1, amount=1, add_to_wallet=True, replaceable=False)
+ assert res["complete"]
+ assert_equal(self.nodes[0].gettransaction(res["txid"])["bip125-replaceable"], "no")
self.log.info("Subtract fee from output")
self.test_send(from_wallet=w0, to_wallet=w1, amount=1, subtract_fee_from_outputs=[0])