aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-02-22 09:01:30 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-02-22 09:01:30 -0800
commitcc67f1e2b40950749637a14aa4a623731aee8eb7 (patch)
tree59c025e589bc3857bb639e99221fff72fc703e6b /src/txdb.h
parentb8f4e42e1bd9f80690d61dc2ab86edb14b2ecb40 (diff)
parentf369d02c51077ffa1644954d0478e93966e1bb72 (diff)
downloadbitcoin-cc67f1e2b40950749637a14aa4a623731aee8eb7.tar.xz
Merge pull request #2221 from sipa/perfo
Various performance tweaks to CCoinsView
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txdb.h b/src/txdb.h
index eb8f574e46..f59fc5da86 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -16,9 +16,9 @@ protected:
public:
CCoinsViewDB(size_t nCacheSize, bool fMemory = false, bool fWipe = false);
- bool GetCoins(uint256 txid, CCoins &coins);
- bool SetCoins(uint256 txid, const CCoins &coins);
- bool HaveCoins(uint256 txid);
+ bool GetCoins(const uint256 &txid, CCoins &coins);
+ bool SetCoins(const uint256 &txid, const CCoins &coins);
+ bool HaveCoins(const uint256 &txid);
CBlockIndex *GetBestBlock();
bool SetBestBlock(CBlockIndex *pindex);
bool BatchWrite(const std::map<uint256, CCoins> &mapCoins, CBlockIndex *pindex);