We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66db2d6 commit fa8ce3bCopy full SHA for fa8ce3b
qa/rpc-tests/fundrawtransaction.py
@@ -247,6 +247,12 @@ def run_test(self):
247
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
248
249
change = self.nodes[2].getnewaddress()
250
+ try:
251
+ rawtxfund = self.nodes[2].fundrawtransaction(rawtx, {'changeAddress': change, 'changePosition': 2})
252
+ except JSONRPCException as e:
253
+ assert('changePosition out of bounds' == e.error['message'])
254
+ else:
255
+ assert(False)
256
rawtxfund = self.nodes[2].fundrawtransaction(rawtx, {'changeAddress': change, 'changePosition': 0})
257
dec_tx = self.nodes[2].decoderawtransaction(rawtxfund['hex'])
258
out = dec_tx['vout'][0];
0 commit comments