diff options
author | Conor Scott <conor.r.scott.88@gmail.com> | 2018-07-30 10:16:40 +0200 |
---|---|---|
committer | Conor Scott <conor.r.scott.88@gmail.com> | 2018-08-09 12:58:36 +0200 |
commit | 736f9414246f2a855e7b6fc57c8f903e60530540 (patch) | |
tree | 4a2ff2b6cc647e36d1c4ec96523950047c2c25c2 /test/functional/feature_csv_activation.py | |
parent | 157651855f91c3c093c27290a349a231ac5ba740 (diff) |
[Tests] Cleanup extra instances of create_transaction
Diffstat (limited to 'test/functional/feature_csv_activation.py')
-rwxr-xr-x | test/functional/feature_csv_activation.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/functional/feature_csv_activation.py b/test/functional/feature_csv_activation.py index 6199b753be..a74471aae5 100755 --- a/test/functional/feature_csv_activation.py +++ b/test/functional/feature_csv_activation.py @@ -47,7 +47,7 @@ from itertools import product from io import BytesIO import time -from test_framework.blocktools import create_coinbase, create_block +from test_framework.blocktools import create_coinbase, create_block, create_transaction from test_framework.messages import ToHex, CTransaction from test_framework.mininode import P2PDataStore from test_framework.script import ( @@ -85,15 +85,6 @@ def relative_locktime(sdf, srhb, stf, srlb): def all_rlt_txs(txs): return [tx['tx'] for tx in txs] -def create_transaction(node, txid, to_address, amount): - inputs = [{"txid": txid, "vout": 0}] - outputs = {to_address: amount} - rawtx = node.createrawtransaction(inputs, outputs) - tx = CTransaction() - f = BytesIO(hex_str_to_bytes(rawtx)) - tx.deserialize(f) - return tx - def sign_transaction(node, unsignedtx): rawtx = ToHex(unsignedtx) signresult = node.signrawtransactionwithwallet(rawtx) |