Skip to content

Commit fd63cee

Browse files
committed
Add note on peg-in sigops
1 parent f17d7de commit fd63cee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/consensus/tx_verify.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ int64_t GetTransactionSigOpCost(const CTransaction& tx, const CCoinsViewCache& i
157157
nSigOps += GetP2SHSigOpCount(tx, inputs) * WITNESS_SCALE_FACTOR;
158158
}
159159

160+
// N.B. Peg-in signatures are always counted against witness sigops,
161+
// even if the prevout scriptpubkey isn't.
160162
for (unsigned int i = 0; i < tx.vin.size(); i++)
161163
{
162164
CTxOut prevout;

0 commit comments

Comments
 (0)