Skip to content

Commit 50d1ac1

Browse files
committed
test: remove unused find_output helper
1 parent 73a339a commit 50d1ac1

File tree

1 file changed

+0
-12
lines changed
  • test/functional/test_framework

1 file changed

+0
-12
lines changed

test/functional/test_framework/util.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -490,18 +490,6 @@ def check_node_connections(*, node, num_in, num_out):
490490
#############################
491491

492492

493-
def find_output(node, txid, amount, *, blockhash=None):
494-
"""
495-
Return index to output of txid with value amount
496-
Raises exception if there is none.
497-
"""
498-
txdata = node.getrawtransaction(txid, 1, blockhash)
499-
for i in range(len(txdata["vout"])):
500-
if txdata["vout"][i]["value"] == amount:
501-
return i
502-
raise RuntimeError("find_output txid %s : %s not found" % (txid, str(amount)))
503-
504-
505493
# Create large OP_RETURN txouts that can be appended to a transaction
506494
# to make it large (helper for constructing large transactions). The
507495
# total serialized size of the txouts is about 66k vbytes.

0 commit comments

Comments
 (0)