diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-10-19 10:54:28 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2016-03-14 12:13:33 -0400 |
commit | 72abd2ce3c5ad8157d3a993693df1919a6ad79c3 (patch) | |
tree | 313c63149c1b4dd3a6374463e0c15b58c343ed83 /src/main.cpp | |
parent | 76a76321d2f36992178ddaaf4d023c5e33c14fbf (diff) |
Add ancestor tracking to mempool
This implements caching of ancestor state to each mempool entry, similar to
descendant tracking, but also including caching sigops-with-ancestors (as that
metric will be helpful to future code that implements better transaction
selection in CreatenewBlock).
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 7a69d96668..2ae560e01b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1323,7 +1323,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C FormatMoney(nModifiedFees - nConflictingFees), (int)nSize - (int)nConflictingSize); } - pool.RemoveStaged(allConflicting); + pool.RemoveStaged(allConflicting, false); // Store transaction in memory pool.addUnchecked(hash, entry, setAncestors, !IsInitialBlockDownload()); |