| 51 | } |
| 52 | |
| 53 | uint256 CCoinsViewDB::GetBestBlock() const { |
| 54 | uint256 hashBestChain; |
| 55 | if (!db.Read(DB_BEST_BLOCK, hashBestChain)) |
| 56 | return uint256(); |
| 57 | return hashBestChain; |
| 58 | } |
| 59 | |
| 60 | bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) { |
| 61 | CLevelDBBatch batch; |
no test coverage detected