diff options
| author | Alex Morcos <[email protected]> | 2015-10-26 11:08:46 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2015-12-01 10:10:25 -0500 |
| commit | c49d5bc9e6c97c47c0bd78604b2c393a7e4af097 (patch) | |
| tree | 4018d21e32637d0acfda7fb88e24a21415baf6e4 /src/test/test_bitcoin.cpp | |
| parent | Merge pull request #7137 (diff) | |
| download | discoin-c49d5bc9e6c97c47c0bd78604b2c393a7e4af097.tar.xz discoin-c49d5bc9e6c97c47c0bd78604b2c393a7e4af097.zip | |
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/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 9645c7c94..2147dbb06 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -150,7 +150,7 @@ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(CMutableTransaction &tx, CTxMemPo CAmount inChainValue = hasNoDependencies ? txn.GetValueOut() : 0; return CTxMemPoolEntry(txn, nFee, nTime, dPriority, nHeight, - hasNoDependencies, inChainValue, spendsCoinbase); + hasNoDependencies, inChainValue, spendsCoinbase, sigOpCount); } void Shutdown(void* parg) |