diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp index a3a984ec62..b8e069d07c 100644 --- a/src/consensus/tx_verify.cpp +++ b/src/consensus/tx_verify.cpp @@ -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;