Tests for CreateNewBlock

This commit is contained in:
Luke Dashjr
2012-05-22 21:55:15 +00:00
parent 148e107da6
commit 639b61d78e
3 changed files with 200 additions and 0 deletions

View File

@@ -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();