diff options
| author | Luke Dashjr <[email protected]> | 2012-05-22 21:55:15 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-07-12 16:35:34 +0000 |
| commit | 639b61d78e9038f217644c47c4e72306159c9822 (patch) | |
| tree | 51c9d519b7276965d7b4e56474ba22919132c0cd /src/main.cpp | |
| parent | Run BDB disk-less for test_bitcoin (diff) | |
| download | discoin-639b61d78e9038f217644c47c4e72306159c9822.tar.xz discoin-639b61d78e9038f217644c47c4e72306159c9822.zip | |
Tests for CreateNewBlock
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index adcfb1948..e02cbe5c2 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(); |