Fix output_id bug with coinbase transactions (#88)

This commit is contained in:
Lee *!* Clagett 2023-11-29 16:00:32 -05:00 committed by Lee *!* Clagett
parent 91b9a40ad7
commit a23eadd7ef

View file

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