diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-08-13 16:06:25 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-10-24 11:13:57 +0200 |
commit | 50d1ac120716ab17f32b28513c0ac9940001a783 (patch) | |
tree | d434892be57ed60351062d46e16cb13cfca14c1c /test | |
parent | 73a339abc3c864461c8b8830e139c8ec51570243 (diff) |
test: remove unused `find_output` helper
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/test_framework/util.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index 61346e9d19..cf2309f469 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -490,18 +490,6 @@ def check_node_connections(*, node, num_in, num_out): ############################# -def find_output(node, txid, amount, *, blockhash=None): - """ - Return index to output of txid with value amount - Raises exception if there is none. - """ - txdata = node.getrawtransaction(txid, 1, blockhash) - for i in range(len(txdata["vout"])): - if txdata["vout"][i]["value"] == amount: - return i - raise RuntimeError("find_output txid %s : %s not found" % (txid, str(amount))) - - # Create large OP_RETURN txouts that can be appended to a transaction # to make it large (helper for constructing large transactions). The # total serialized size of the txouts is about 66k vbytes. |