|
|
|
@ -53,6 +53,11 @@ class RawTransactionsTest(BitcoinTestFramework):
|
|
|
|
|
self.nodes[0].generate(121)
|
|
|
|
|
self.sync_all()
|
|
|
|
|
|
|
|
|
|
# ensure that setting changePosition in fundraw with an exact match is handled properly
|
|
|
|
|
rawmatch = self.nodes[2].createrawtransaction([], {self.nodes[2].getnewaddress():50})
|
|
|
|
|
rawmatch = self.nodes[2].fundrawtransaction(rawmatch, {"changePosition":1, "subtractFeeFromOutputs":[0]})
|
|
|
|
|
assert_equal(rawmatch["changepos"], -1)
|
|
|
|
|
|
|
|
|
|
watchonly_address = self.nodes[0].getnewaddress()
|
|
|
|
|
watchonly_pubkey = self.nodes[0].validateaddress(watchonly_address)["pubkey"]
|
|
|
|
|
watchonly_amount = Decimal(200)
|
|
|
|
|