diff options
| author | Daniel Kraft <[email protected]> | 2014-07-19 16:42:48 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2014-08-26 11:29:18 +0200 |
| commit | a3dc587a62f5d12aea1ff8139198bf0441535c5f (patch) | |
| tree | 4759437af72c07a075c6819bb5c2435d7350f0d8 /src/txdb.h | |
| parent | Mark LevelDB "Read" and "Exists" functions as const. (diff) | |
| download | discoin-a3dc587a62f5d12aea1ff8139198bf0441535c5f.tar.xz discoin-a3dc587a62f5d12aea1ff8139198bf0441535c5f.zip | |
Make appropriate getter-routines "const" in CCoinsView.
Mark the "Get"/"Have" routines in CCoinsView and subclasses as "const".
Diffstat (limited to 'src/txdb.h')
| -rw-r--r-- | src/txdb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txdb.h b/src/txdb.h index 099f15177..f0b6b9e1d 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -32,13 +32,13 @@ protected: public: CCoinsViewDB(size_t nCacheSize, bool fMemory = false, bool fWipe = false); - bool GetCoins(const uint256 &txid, CCoins &coins); + bool GetCoins(const uint256 &txid, CCoins &coins) const; bool SetCoins(const uint256 &txid, const CCoins &coins); - bool HaveCoins(const uint256 &txid); - uint256 GetBestBlock(); + bool HaveCoins(const uint256 &txid) const; + uint256 GetBestBlock() const; bool SetBestBlock(const uint256 &hashBlock); bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock); - bool GetStats(CCoinsStats &stats); + bool GetStats(CCoinsStats &stats) const; }; /** Access to the block database (blocks/index/) */ |