From fd63cee1ab07c3193e4e7c79559c875785f2e05b Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Fri, 31 May 2019 11:22:19 -0400 Subject: [PATCH] Add note on peg-in sigops --- src/consensus/tx_verify.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;