diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-16 00:32:18 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-21 14:30:03 +0200 |
commit | a79396fe5f8f81c78cf84117a87074c6ff6c9d95 (patch) | |
tree | 6d5a3a187d6968bd1c5236f1b20bb5ba7759628e /test/functional/rpc_rawtransaction.py | |
parent | 2ce7b47958c4a10ba20dc86c011d71cda4b070a5 (diff) | |
download | bitcoin-a79396fe5f8f81c78cf84117a87074c6ff6c9d95.tar.xz |
test: remove `ToHex` helper, use .serialize().hex() instead
Diffstat (limited to 'test/functional/rpc_rawtransaction.py')
-rwxr-xr-x | test/functional/rpc_rawtransaction.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/rpc_rawtransaction.py b/test/functional/rpc_rawtransaction.py index b3d5771534..db57368eae 100755 --- a/test/functional/rpc_rawtransaction.py +++ b/test/functional/rpc_rawtransaction.py @@ -18,7 +18,6 @@ from decimal import Decimal from test_framework.blocktools import COINBASE_MATURITY from test_framework.messages import ( CTransaction, - ToHex, tx_from_hex, ) from test_framework.test_framework import BitcoinTestFramework @@ -451,14 +450,14 @@ class RawTransactionsTest(BitcoinTestFramework): # As transaction version is unsigned, this should convert to its unsigned equivalent. tx = CTransaction() tx.nVersion = -0x80000000 - rawtx = ToHex(tx) + rawtx = tx.serialize().hex() decrawtx = self.nodes[0].decoderawtransaction(rawtx) assert_equal(decrawtx['version'], 0x80000000) # Test the maximum transaction version number that fits in a signed 32-bit integer. tx = CTransaction() tx.nVersion = 0x7fffffff - rawtx = ToHex(tx) + rawtx = tx.serialize().hex() decrawtx = self.nodes[0].decoderawtransaction(rawtx) assert_equal(decrawtx['version'], 0x7fffffff) |