@@ -361,30 +361,30 @@ def run_test(self):
361
361
362
362
# getrawtransaction tests
363
363
# 1. valid parameters - only supply txid
364
- txHash = rawTx ["hash " ]
365
- assert_equal (self .nodes [0 ].getrawtransaction (txHash ), rawTxSigned ['hex' ])
364
+ txId = rawTx ["txid " ]
365
+ assert_equal (self .nodes [0 ].getrawtransaction (txId ), rawTxSigned ['hex' ])
366
366
367
367
# 2. valid parameters - supply txid and 0 for non-verbose
368
- assert_equal (self .nodes [0 ].getrawtransaction (txHash , 0 ), rawTxSigned ['hex' ])
368
+ assert_equal (self .nodes [0 ].getrawtransaction (txId , 0 ), rawTxSigned ['hex' ])
369
369
370
370
# 3. valid parameters - supply txid and False for non-verbose
371
- assert_equal (self .nodes [0 ].getrawtransaction (txHash , False ), rawTxSigned ['hex' ])
371
+ assert_equal (self .nodes [0 ].getrawtransaction (txId , False ), rawTxSigned ['hex' ])
372
372
373
373
# 4. valid parameters - supply txid and 1 for verbose.
374
374
# We only check the "hex" field of the output so we don't need to update this test every time the output format changes.
375
- assert_equal (self .nodes [0 ].getrawtransaction (txHash , 1 )["hex" ], rawTxSigned ['hex' ])
375
+ assert_equal (self .nodes [0 ].getrawtransaction (txId , 1 )["hex" ], rawTxSigned ['hex' ])
376
376
377
377
# 5. valid parameters - supply txid and True for non-verbose
378
- assert_equal (self .nodes [0 ].getrawtransaction (txHash , True )["hex" ], rawTxSigned ['hex' ])
378
+ assert_equal (self .nodes [0 ].getrawtransaction (txId , True )["hex" ], rawTxSigned ['hex' ])
379
379
380
380
# 6. invalid parameters - supply txid and string "Flase"
381
- assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txHash , "Flase" )
381
+ assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txId , "Flase" )
382
382
383
383
# 7. invalid parameters - supply txid and empty array
384
- assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txHash , [])
384
+ assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txId , [])
385
385
386
386
# 8. invalid parameters - supply txid and empty dict
387
- assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txHash , {})
387
+ assert_raises_rpc_error (- 1 , "not a boolean" , self .nodes [0 ].getrawtransaction , txId , {})
388
388
389
389
inputs = [ {'txid' : "1d1d4e24ed99057e84c3f80fd8fbec79ed9e1acee37da269356ecea000000000" , 'vout' : 1 , 'sequence' : 1000 }]
390
390
outputs = { self .nodes [0 ].getnewaddress () : 1 }
0 commit comments