Skip to content

Commit 187ef8f

Browse files
committed
fixup: for outputhash in regtests
1 parent 086775a commit 187ef8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

divi/qa/rpc-tests/BadBlockTests.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def build_bad_sig_spend (self):
4949
amountToSend = int ((Decimal (inp["amount"]) - Decimal ('0.1')) * COIN)
5050
tx = CTransaction ()
5151
tx.vout.append( CTxOut(amountToSend, scriptToSendTo ) )
52-
tx.vin.append (CTxIn (COutPoint (txid=inp["txid"], n=inp["vout"])))
52+
tx.vin.append (CTxIn (COutPoint (txid=inp["outputhash"], n=inp["vout"])))
5353

5454

5555
unsigned = tx.serialize ().hex ()

divi/qa/rpc-tests/TxInputsStandardness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def generateOutput (self, addr, amount):
2828
tx = self.node.getrawtransaction (txid, 1)
2929
for i in range (len (tx["vout"])):
3030
if tx["vout"][i]["scriptPubKey"]["addresses"] == [addr]:
31-
return (txid, i)
31+
return (tx["txid"], i)
3232

3333
raise AssertionError ("failed to find destination address")
3434

0 commit comments

Comments
 (0)