aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2014-07-19 16:42:48 +0200
committerDaniel Kraft <d@domob.eu>2014-08-26 11:29:18 +0200
commita3dc587a62f5d12aea1ff8139198bf0441535c5f (patch)
tree4759437af72c07a075c6819bb5c2435d7350f0d8 /src/txdb.h
parentffb4c210bc0b78bd8cbccdb7ccb80dde918a01b0 (diff)
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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 099f151776..f0b6b9e1dd 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/) */