From a23eadd7ef0638081fec32c76d87a6bc1d29ecdd Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Wed, 29 Nov 2023 16:00:32 -0500 Subject: [PATCH] Fix output_id bug with coinbase transactions (#88) --- src/scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.cpp b/src/scanner.cpp index 7cd071c..086e7bb 100644 --- a/src/scanner.cpp +++ b/src/scanner.cpp @@ -407,7 +407,7 @@ namespace lws db::output{ db::transaction_link{height, tx_hash}, db::output::spend_meta_{ - db::output_id{out.amount, out_ids.at(index)}, + db::output_id{tx.version < 2 ? out.amount : 0, out_ids.at(index)}, amount, mixin, boost::numeric_cast(index),