File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 19
19
assert_equal ,
20
20
wait_until ,
21
21
)
22
+ from codecs import encode
22
23
23
24
24
25
class InvalidTxRequestTest (BitcoinTestFramework ):
@@ -79,10 +80,12 @@ def run_test(self):
79
80
# Create a root transaction that we withhold until all dependend transactions
80
81
# are sent out and in the orphan cache
81
82
SCRIPT_PUB_KEY_OP_TRUE = b'\x51 \x75 ' * 15 + b'\x51 '
83
+ self .log .info ("SCRIPT_PUB_KEY_OP_TRUE: " + encode (SCRIPT_PUB_KEY_OP_TRUE , 'hex_codec' ).decode ('ascii' ))
82
84
tx_withhold = CTransaction ()
83
85
tx_withhold .vin .append (CTxIn (outpoint = COutPoint (block1 .vtx [0 ].sha256 , 0 )))
84
86
tx_withhold .vout .append (CTxOut (nValue = 50 * COIN - 12000 , scriptPubKey = SCRIPT_PUB_KEY_OP_TRUE ))
85
87
tx_withhold .calc_sha256 ()
88
+ self .log .info ("tx_withhold.hash = " + tx_withhold .hash )
86
89
87
90
# Our first orphan tx with some outputs to create further orphan txs
88
91
tx_orphan_1 = CTransaction ()
You can’t perform that action at this time.
0 commit comments