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/txmempool.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/txmempool.h')
| -rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 2577397bc..074c35507 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -143,8 +143,8 @@ protected: public: CCoinsViewMemPool(CCoinsView &baseIn, CTxMemPool &mempoolIn); - bool GetCoins(const uint256 &txid, CCoins &coins); - bool HaveCoins(const uint256 &txid); + bool GetCoins(const uint256 &txid, CCoins &coins) const; + bool HaveCoins(const uint256 &txid) const; }; #endif /* BITCOIN_TXMEMPOOL_H */ |