mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Add note on peg-in sigops
This commit is contained in:
parent
c37a8fe88b
commit
21cf128439
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue