fix: minor fixes

This commit is contained in:
Byron Hambly 2026-06-19 16:43:18 +02:00
parent 7c1fcd1ba6
commit 20c5d373e3
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
4 changed files with 5 additions and 4 deletions

View file

@ -746,7 +746,7 @@ private:
// calculate the burned subsidy value from the tx
CAmount subsidy = 0;
for (const CTxOut& txout : tx.vout) {
if (txout.scriptPubKey.IsUnspendable() && txout.nAsset.GetAsset() == Params().GetConsensus().pegged_asset && !txout.IsFee()) {
if (txout.scriptPubKey.IsUnspendable() && !txout.IsFee() && txout.nAsset.IsExplicit() && txout.nValue.IsExplicit() && txout.nAsset.GetAsset() == Params().GetConsensus().pegged_asset) {
subsidy += txout.nValue.GetAmount();
}
}