File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -207,12 +207,12 @@ class CCoinsViewCache : public CCoinsViewBacked
207
207
CCoinsViewCache (CCoinsView *baseIn);
208
208
209
209
// Standard CCoinsView methods
210
- bool GetCoin (const COutPoint &outpoint, Coin &coin) const ;
211
- bool HaveCoin (const COutPoint &outpoint) const ;
212
- uint256 GetBestBlock () const ;
210
+ bool GetCoin (const COutPoint &outpoint, Coin &coin) const override ;
211
+ bool HaveCoin (const COutPoint &outpoint) const override ;
212
+ uint256 GetBestBlock () const override ;
213
213
void SetBestBlock (const uint256 &hashBlock);
214
- bool BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock);
215
- CCoinsViewCursor* Cursor () const {
214
+ bool BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock) override ;
215
+ CCoinsViewCursor* Cursor () const override {
216
216
throw std::logic_error (" CCoinsViewCache cursor iteration not supported." );
217
217
}
218
218
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class CCoinsViewTest : public CCoinsView
37
37
std::map<COutPoint, Coin> map_;
38
38
39
39
public:
40
- bool GetCoin (const COutPoint& outpoint, Coin& coin) const
40
+ bool GetCoin (const COutPoint& outpoint, Coin& coin) const override
41
41
{
42
42
std::map<COutPoint, Coin>::const_iterator it = map_.find (outpoint);
43
43
if (it == map_.end ()) {
@@ -51,15 +51,15 @@ class CCoinsViewTest : public CCoinsView
51
51
return true ;
52
52
}
53
53
54
- bool HaveCoin (const COutPoint& outpoint) const
54
+ bool HaveCoin (const COutPoint& outpoint) const override
55
55
{
56
56
Coin coin;
57
57
return GetCoin (outpoint, coin);
58
58
}
59
59
60
- uint256 GetBestBlock () const { return hashBestBlock_; }
60
+ uint256 GetBestBlock () const override { return hashBestBlock_; }
61
61
62
- bool BatchWrite (CCoinsMap& mapCoins, const uint256& hashBlock)
62
+ bool BatchWrite (CCoinsMap& mapCoins, const uint256& hashBlock) override
63
63
{
64
64
for (CCoinsMap::iterator it = mapCoins.begin (); it != mapCoins.end (); ) {
65
65
if (it->second .flags & CCoinsCacheEntry::DIRTY) {
You can’t perform that action at this time.
0 commit comments