Add note on peg-in sigops

This commit is contained in:
Gregory Sanders 2019-05-31 11:22:19 -04:00
parent f17d7de526
commit fd63cee1ab

View file

@ -157,6 +157,8 @@ int64_t GetTransactionSigOpCost(const CTransaction& tx, const CCoinsViewCache& i
nSigOps += GetP2SHSigOpCount(tx, inputs) * WITNESS_SCALE_FACTOR;
}
// N.B. Peg-in signatures are always counted against witness sigops,
// even if the prevout scriptpubkey isn't.
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
CTxOut prevout;