Mempool consistency check

This commit is contained in:
Pieter Wuille
2013-08-03 13:08:34 +02:00
committed by Pieter Wuille
parent f0784ac470
commit 2461aba1ac
4 changed files with 52 additions and 0 deletions

View File

@@ -1077,6 +1077,7 @@ public:
class CTxMemPool
{
public:
static bool fChecks;
mutable CCriticalSection cs;
std::map<uint256, CTransaction> mapTx;
std::map<COutPoint, CInPoint> mapNextTx;
@@ -1088,6 +1089,7 @@ public:
void clear();
void queryHashes(std::vector<uint256>& vtxid);
void pruneSpent(const uint256& hash, CCoins &coins);
void check(CCoinsViewCache *pcoins) const;
unsigned long size()
{