aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAyush Sharma <mrayushs933@gmail.com>2022-06-24 18:04:48 +0530
committerAyush Sharma <mrayushs933@gmail.com>2022-06-24 18:04:48 +0530
commit50ba6697f33b44e475ed65137f7ff0444f6c4ca9 (patch)
tree33ddaff524e430472a9a545aed7240cc98171628 /test
parenteec23dad1ec471641dcc74f6679e5c0eda44da94 (diff)
downloadbitcoin-50ba6697f33b44e475ed65137f7ff0444f6c4ca9.tar.xz
remove unused functions
the functions `create_transaction()` and `create_raw_transaction()` were no longer used hence removed.
Diffstat (limited to 'test')
-rw-r--r--test/functional/test_framework/blocktools.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
index 40fcbf7761..574ea10356 100644
--- a/test/functional/test_framework/blocktools.py
+++ b/test/functional/test_framework/blocktools.py
@@ -162,30 +162,6 @@ def create_tx_with_script(prevtx, n, script_sig=b"", *, amount, script_pub_key=C
tx.calc_sha256()
return tx
-def create_transaction(node, txid, to_address, *, amount):
- """ Return signed transaction spending the first output of the
- input txid. Note that the node must have a wallet that can
- sign for the output that is being spent.
- """
- raw_tx = create_raw_transaction(node, txid, to_address, amount=amount)
- tx = tx_from_hex(raw_tx)
- return tx
-
-def create_raw_transaction(node, txid, to_address, *, amount):
- """ Return raw signed transaction spending the first output of the
- input txid. Note that the node must have a wallet that can sign
- for the output that is being spent.
- """
- psbt = node.createpsbt(inputs=[{"txid": txid, "vout": 0}], outputs={to_address: amount})
- for _ in range(2):
- for w in node.listwallets():
- wrpc = node.get_wallet_rpc(w)
- signed_psbt = wrpc.walletprocesspsbt(psbt)
- psbt = signed_psbt['psbt']
- final_psbt = node.finalizepsbt(psbt)
- assert_equal(final_psbt["complete"], True)
- return final_psbt['hex']
-
def get_legacy_sigopcount_block(block, accurate=True):
count = 0
for tx in block.vtx: