diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-08-15 23:32:38 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-09-22 18:51:08 +0200 |
commit | 3b33ec85ed00ba7e7525858e3701f9f55071c58b (patch) | |
tree | ff0ec0f97d3058f8bd89edc82b78cf1706308b5a /src/primitives/block.h | |
parent | 391dff16fe9ace90fc0f3308a5c63c453370e713 (diff) |
Avoid duplicate CheckBlock checks
Diffstat (limited to 'src/primitives/block.h')
-rw-r--r-- | src/primitives/block.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/primitives/block.h b/src/primitives/block.h index 7fe8c84cb7..86106098f5 100644 --- a/src/primitives/block.h +++ b/src/primitives/block.h @@ -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 |