fixed the migration to a different output objec

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-04-17 15:04:03 +02:00
parent 11cf86464f
commit 711046168f
No known key found for this signature in database

View File

@ -32,4 +32,4 @@ class OutputListApi(Resource):
"Invalid output ({}): {} : {} - {}".format(type(e).__name__, e, args["public_key"], args["spent"]),
level="error",
)
return [{"transaction_id": output.txid, "output_index": output.output} for output in outputs]
return [{"transaction_id": output.transaction_id, "output_index": output.index} for output in outputs]