|
|
@ -285,11 +285,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
|
|
|
|
|
|
|
|
|
|
|
txDetails = self.nodes[0].gettransaction(txId, True)
|
|
|
|
txDetails = self.nodes[0].gettransaction(txId, True)
|
|
|
|
rawTx = self.nodes[0].decoderawtransaction(txDetails['hex'])
|
|
|
|
rawTx = self.nodes[0].decoderawtransaction(txDetails['hex'])
|
|
|
|
vout = False
|
|
|
|
vout = next(o for o in rawTx['vout'] if o['value'] == Decimal('2.20000000'))
|
|
|
|
for outpoint in rawTx['vout']:
|
|
|
|
|
|
|
|
if outpoint['value'] == Decimal('2.20000000'):
|
|
|
|
|
|
|
|
vout = outpoint
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bal = self.nodes[0].getbalance()
|
|
|
|
bal = self.nodes[0].getbalance()
|
|
|
|
inputs = [{ "txid" : txId, "vout" : vout['n'], "scriptPubKey" : vout['scriptPubKey']['hex'], "amount" : vout['value']}]
|
|
|
|
inputs = [{ "txid" : txId, "vout" : vout['n'], "scriptPubKey" : vout['scriptPubKey']['hex'], "amount" : vout['value']}]
|
|
|
@ -330,11 +326,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
|
|
|
|
|
|
|
|
|
|
|
txDetails = self.nodes[0].gettransaction(txId, True)
|
|
|
|
txDetails = self.nodes[0].gettransaction(txId, True)
|
|
|
|
rawTx2 = self.nodes[0].decoderawtransaction(txDetails['hex'])
|
|
|
|
rawTx2 = self.nodes[0].decoderawtransaction(txDetails['hex'])
|
|
|
|
vout = False
|
|
|
|
vout = next(o for o in rawTx2['vout'] if o['value'] == Decimal('2.20000000'))
|
|
|
|
for outpoint in rawTx2['vout']:
|
|
|
|
|
|
|
|
if outpoint['value'] == Decimal('2.20000000'):
|
|
|
|
|
|
|
|
vout = outpoint
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bal = self.nodes[0].getbalance()
|
|
|
|
bal = self.nodes[0].getbalance()
|
|
|
|
inputs = [{ "txid" : txId, "vout" : vout['n'], "scriptPubKey" : vout['scriptPubKey']['hex'], "redeemScript" : mSigObjValid['hex'], "amount" : vout['value']}]
|
|
|
|
inputs = [{ "txid" : txId, "vout" : vout['n'], "scriptPubKey" : vout['scriptPubKey']['hex'], "redeemScript" : mSigObjValid['hex'], "amount" : vout['value']}]
|
|
|
|