Avoid duplicate CheckBlock checks

This commit is contained in:
Pieter Wuille
2015-08-15 23:32:38 +02:00
parent 391dff16fe
commit 3b33ec85ed
2 changed files with 10 additions and 0 deletions

View File

@@ -77,6 +77,9 @@ public:
// network and disk
std::vector<CTransaction> vtx;
// memory only
mutable bool fChecked;
CBlock()
{
SetNull();
@@ -100,6 +103,7 @@ public:
{
CBlockHeader::SetNull();
vtx.clear();
fChecked = false;
}
CBlockHeader GetBlockHeader() const