Fix output_id bug with coinbase transactions ()

This commit is contained in:
Lee *!* Clagett 2023-11-29 16:00:32 -05:00 committed by Lee *!* Clagett
parent 1d15bba923
commit f63f185d20

View file

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