qa: Add some actual witness in rpc_rawtransaction
This commit is contained in:
parent
540bf8aacc
commit
fae040010d
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||||
|
|
||||||
# decoderawtransaction tests
|
# decoderawtransaction tests
|
||||||
# witness transaction
|
# witness transaction
|
||||||
encrawtx = "010000000001010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f50500000000000000000000"
|
encrawtx = "010000000001010000000000000072c1a6a246ae63f74f931e8365e15a089c68d61900000000000000000000ffffffff0100e1f50500000000000102616100000000"
|
||||||
decrawtx = self.nodes[0].decoderawtransaction(encrawtx, True) # decode as witness transaction
|
decrawtx = self.nodes[0].decoderawtransaction(encrawtx, True) # decode as witness transaction
|
||||||
assert_equal(decrawtx['vout'][0]['value'], Decimal('1.00000000'))
|
assert_equal(decrawtx['vout'][0]['value'], Decimal('1.00000000'))
|
||||||
assert_raises_rpc_error(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction
|
assert_raises_rpc_error(-22, 'TX decode failed', self.nodes[0].decoderawtransaction, encrawtx, False) # force decode as non-witness transaction
|
||||||
|
|
Loading…
Reference in a new issue