mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 22:24:05 +01:00
Use override keyword on CCoinsView overrides
This commit is contained in:
10
src/coins.h
10
src/coins.h
@@ -207,12 +207,12 @@ 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);
|
||||
CCoinsViewCursor* Cursor() const {
|
||||
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override;
|
||||
CCoinsViewCursor* Cursor() const override {
|
||||
throw std::logic_error("CCoinsViewCache cursor iteration not supported.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user