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 GitHub
parent 037c5386dc
commit fe1003909d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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