diff options
| author | Pieter Wuille <[email protected]> | 2013-11-05 02:27:39 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-11-10 19:22:53 +0100 |
| commit | 84674082b0c4cfcdd54fb97a29bc841aa7f691c2 (patch) | |
| tree | 87fb3462d81b84c0d4a64cb5eca7ab8c64895091 /src/txdb.h | |
| parent | Merge pull request #2767 (diff) | |
| download | discoin-84674082b0c4cfcdd54fb97a29bc841aa7f691c2.tar.xz discoin-84674082b0c4cfcdd54fb97a29bc841aa7f691c2.zip | |
Make CCoinsView use block hashes instead of indices
Diffstat (limited to 'src/txdb.h')
| -rw-r--r-- | src/txdb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txdb.h b/src/txdb.h index 8043a595a..7ce6585d3 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -29,9 +29,9 @@ public: 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); + uint256 GetBestBlock(); + bool SetBestBlock(const uint256 &hashBlock); + bool BatchWrite(const std::map<uint256, CCoins> &mapCoins, const uint256 &hashBlock); bool GetStats(CCoinsStats &stats); }; |