diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-12 16:19:08 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-12 16:29:59 +0200 |
commit | b7296bcea0c942abefcb3243e3e558b95933c082 (patch) | |
tree | 7d6e93af29fbb934ec8685ceaf473225f5d5f89f /src/coins.h | |
parent | ad1a13e85c1eb638f32509993ce319356ba2b9e0 (diff) | |
parent | 3ff1fa8c4a6198ebc277bbf814b4e07bf78eb98a (diff) |
Merge #10550: Don't return stale data from CCoinsViewCache::Cursor()
3ff1fa8 Use override keyword on CCoinsView overrides (Russell Yanofsky)
24e44c3 Don't return stale data from CCoinsViewCache::Cursor() (Russell Yanofsky)
Tree-SHA512: 08699dae0925ffb9c018f02612ac6b7eaf73ec331e2f4f934f1fe25a2ce120735fa38596926e924897c203f7470e99f0a99cf70d2ce31ff428b105e16583a861
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/coins.h b/src/coins.h index 22b1f57b9e..dc3210b8ac 100644 --- a/src/coins.h +++ b/src/coins.h @@ -206,11 +206,14 @@ public: CCoinsViewCache(CCoinsView *baseIn); // Standard CCoinsView methods - bool GetCoin(const COutPoint &outpoint, Coin &coin) const; - bool HaveCoin(const COutPoint &outpoint) const; - uint256 GetBestBlock() const; + bool GetCoin(const COutPoint &outpoint, Coin &coin) const override; + bool HaveCoin(const COutPoint &outpoint) const override; + uint256 GetBestBlock() const override; void SetBestBlock(const uint256 &hashBlock); - bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock); + bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override; + CCoinsViewCursor* Cursor() const override { + throw std::logic_error("CCoinsViewCache cursor iteration not supported."); + } /** * Check if we have the given utxo already loaded in this cache. |