aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-10-03 14:41:03 +0900
committerGregory Sanders <gsanders87@gmail.com>2018-11-30 11:08:41 -0500
commit2a5cc40dc428e9024142ebebeaa97a3a3a4a1fa6 (patch)
tree1cfbfb58fae07c7e98770e426da469873bd79906 /test/functional
parent53dcf2b407f8a2b4ebe372a8f28b7ba073b9eda7 (diff)
CreateTransaction: Assume minimum p2sh-p2wpkh spend size for unknown change
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/rpc_psbt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py
index 7f2c0c1bd4..7c8c6c9af0 100755
--- a/test/functional/rpc_psbt.py
+++ b/test/functional/rpc_psbt.py
@@ -169,6 +169,10 @@ class PSBTTest(BitcoinTestFramework):
assert_equal(decoded_psbt["tx"]["locktime"], 0)
+ # Make sure change address wallet does not have P2SH innerscript access to results in success
+ # when attempting BnB coin selection
+ self.nodes[0].walletcreatefundedpsbt([], [{self.nodes[2].getnewaddress():unspent["amount"]+1}], block_height+2, {"changeAddress":self.nodes[1].getnewaddress()}, False)
+
# BIP 174 Test Vectors
# Check that unknown values are just passed through