Skip to content

Commit

Permalink
[Refactoring] No need to check mint-outputs to define coinbase txes
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed May 3, 2021
1 parent c14870b commit b9eacdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class CTransaction

bool IsCoinBase() const
{
return (vin.size() == 1 && vin[0].prevout.IsNull() && !ContainsZerocoins());
return (vin.size() == 1 && vin[0].prevout.IsNull() && !vin[0].scriptSig.IsZerocoinSpend());
}

bool IsCoinStake() const;
Expand Down

0 comments on commit b9eacdc

Please sign in to comment.