mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
test: remove unused find_output helper
This commit is contained in:
@@ -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
|
# Create large OP_RETURN txouts that can be appended to a transaction
|
||||||
# to make it large (helper for constructing large transactions). The
|
# to make it large (helper for constructing large transactions). The
|
||||||
# total serialized size of the txouts is about 66k vbytes.
|
# total serialized size of the txouts is about 66k vbytes.
|
||||||
|
|||||||
Reference in New Issue
Block a user