diff options
| author | Suhas Daftuar <[email protected]> | 2017-04-03 16:31:51 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2017-05-06 05:27:21 -0400 |
| commit | acc2e4bc96ed705aed3b331141028f7b838eccbe (patch) | |
| tree | 9354d44ab5933e5167003b072b0e429b004ccb5a /src/txmempool.cpp | |
| parent | Merge #10327: [tests] remove import-abort-rescan.py (diff) | |
| download | discoin-acc2e4bc96ed705aed3b331141028f7b838eccbe.tar.xz discoin-acc2e4bc96ed705aed3b331141028f7b838eccbe.zip | |
Bugfix: PrioritiseTransaction updates the mempool tx counter
The mempool's nTransactionsUpdated is used by getblocktemplate
to trigger new invocations of CreateNewBlock().
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index ac842da6b..0fead8007 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -865,6 +865,7 @@ void CTxMemPool::PrioritiseTransaction(const uint256& hash, const CAmount& nFeeD BOOST_FOREACH(txiter descendantIt, setDescendants) { mapTx.modify(descendantIt, update_ancestor_state(0, nFeeDelta, 0, 0)); } + ++nTransactionsUpdated; } } LogPrintf("PrioritiseTransaction: %s feerate += %s\n", hash.ToString(), FormatMoney(nFeeDelta)); |