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),