aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-05-22 21:55:15 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-07-12 16:35:34 +0000
commit639b61d78e9038f217644c47c4e72306159c9822 (patch)
tree51c9d519b7276965d7b4e56474ba22919132c0cd /src/main.cpp
parent148e107da6f3e0f477e773cc3a3cb882ff53dab4 (diff)
downloadbitcoin-639b61d78e9038f217644c47c4e72306159c9822.tar.xz
Tests for CreateNewBlock
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index adcfb19484..e02cbe5c2c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -653,6 +653,15 @@ bool CTxMemPool::remove(CTransaction &tx)
return true;
}
+void
+CTxMemPool::clear()
+{
+ LOCK(cs);
+ mapTx.clear();
+ mapNextTx.clear();
+ ++nTransactionsUpdated;
+}
+
void CTxMemPool::queryHashes(std::vector<uint256>& vtxid)
{
vtxid.clear();