diff options
| author | Suhas Daftuar <[email protected]> | 2017-04-03 16:31:51 -0400 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2017-04-19 20:10:02 +0000 |
| commit | d28d58382076c77dc7f8ec59997c5ce2fde99f70 (patch) | |
| tree | d32478f70ec654f1f485fb0a9ddd62880f276755 /src/txmempool.cpp | |
| parent | doc: Update release notes pre-rc2 (diff) | |
| download | discoin-d28d58382076c77dc7f8ec59997c5ce2fde99f70.tar.xz discoin-d28d58382076c77dc7f8ec59997c5ce2fde99f70.zip | |
Bugfix: PrioritiseTransaction updates the mempool tx counter
The mempool's nTransactionsUpdated is used by getblocktemplate
to trigger new invocations of CreateNewBlock().
Github-Pull: #10196
Rebased-From: 909306cde3770ed7019e7b635e24cedbd9de66ce
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 91040fb9b..72547b582 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -945,6 +945,7 @@ void CTxMemPool::PrioritiseTransaction(const uint256 hash, const std::string str BOOST_FOREACH(txiter descendantIt, setDescendants) { mapTx.modify(descendantIt, update_ancestor_state(0, nFeeDelta, 0, 0)); } + ++nTransactionsUpdated; } } LogPrintf("PrioritiseTransaction: %s priority += %f, fee += %d\n", strHash, dPriorityDelta, FormatMoney(nFeeDelta)); |