mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Add note on peg-in sigops
This commit is contained in:
parent
f17d7de526
commit
fd63cee1ab
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