diff options
author | Alex Morcos <morcos@chaincode.com> | 2015-10-26 11:08:46 -0400 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2015-12-01 10:10:25 -0500 |
commit | c49d5bc9e6c97c47c0bd78604b2c393a7e4af097 (patch) | |
tree | 4018d21e32637d0acfda7fb88e24a21415baf6e4 /src/main.cpp | |
parent | 16f4a6e0fe267e38d14f887e124ee9ca8894267a (diff) |
Store the total sig op count of a tx.
Store sum of legacy and P2SH sig op counts. This is calculated in AcceptToMemory pool and storing it saves redoing the expensive calculation in block template creation.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index e3c77e8505..fb6d32b2fc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -964,7 +964,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa } } - CTxMemPoolEntry entry(tx, nFees, GetTime(), dPriority, chainActive.Height(), pool.HasNoInputsOf(tx), inChainInputValue, fSpendsCoinbase); + CTxMemPoolEntry entry(tx, nFees, GetTime(), dPriority, chainActive.Height(), pool.HasNoInputsOf(tx), inChainInputValue, fSpendsCoinbase, nSigOps); unsigned int nSize = entry.GetTxSize(); // Don't accept it if it can't get into a block |