Allow BatchWrite to destroy its input, reducing copying

This commit is contained in:
Pieter Wuille
2014-08-24 02:08:05 +02:00
parent 5cd00bc8cb
commit b0875eb3fe
4 changed files with 21 additions and 14 deletions

View File

@@ -37,7 +37,7 @@ public:
bool HaveCoins(const uint256 &txid);
uint256 GetBestBlock();
bool SetBestBlock(const uint256 &hashBlock);
bool BatchWrite(const CCoinsMap &mapCoins, const uint256 &hashBlock);
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock);
bool GetStats(CCoinsStats &stats);
};