File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,16 @@ def script_verification_error_test(self):
78
78
outputs = {'mpLQjfK79b7CCV4VMJWEWAj5Mpx8Up5zxB' : 0.1 }
79
79
80
80
rawTx = self .nodes [0 ].createrawtransaction (inputs , outputs )
81
+
82
+ # Make sure decoderawtransaction is at least marginally sane
83
+ decodedRawTx = self .nodes [0 ].decoderawtransaction (rawTx )
84
+ for i , inp in enumerate (inputs ):
85
+ assert_equal (decodedRawTx ["vin" ][i ]["txid" ], inp ["txid" ])
86
+ assert_equal (decodedRawTx ["vin" ][i ]["vout" ], inp ["vout" ])
87
+
88
+ # Make sure decoderawtransaction throws if there is extra data
89
+ assert_raises (JSONRPCException , self .nodes [0 ].decoderawtransaction , rawTx + "00" )
90
+
81
91
rawTxSigned = self .nodes [0 ].signrawtransaction (rawTx , scripts , privKeys )
82
92
83
93
# 3) The transaction has no complete set of signatures
You can’t perform that action at this time.
0 commit comments