Skip to content

Commit

Permalink
Fix output_id bug with coinbase transactions (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnerd authored Nov 29, 2023
1 parent 037c538 commit fe10039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::uint32_t>(index),
Expand Down

0 comments on commit fe10039

Please sign in to comment.