diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-02 17:35:36 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-02 17:35:45 +0100 |
commit | 40d65eb66d0865aa64c410c3eb970dafcad71851 (patch) | |
tree | 841e424200570715a0402714c2add3ca1ccaed78 /src/coins.h | |
parent | 269d8ba0d24eb9a35c8c9e4995eccedfb723717b (diff) | |
parent | 1b178a7f966cd3649b7f0a52ffc4b8ef4c227900 (diff) |
Merge pull request #5580
1b178a7 Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, behave correctly (Luke Dashjr)
228d238 Make CCoinsViewCache's copy constructor private (Luke Dashjr)
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coins.h b/src/coins.h index 2be52ad171..4f1afb00de 100644 --- a/src/coins.h +++ b/src/coins.h @@ -437,6 +437,11 @@ public: private: CCoinsMap::iterator FetchCoins(const uint256 &txid); CCoinsMap::const_iterator FetchCoins(const uint256 &txid) const; + + /** + * By making the copy constructor private, we prevent accidentally using it when one intends to create a cache on top of a base cache. + */ + CCoinsViewCache(const CCoinsViewCache &); }; #endif // BITCOIN_COINS_H |