| 74 | } |
| 75 | |
| 76 | std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const { |
| 77 | std::vector<uint256> vhashHeadBlocks; |
| 78 | if (!db.Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) { |
| 79 | return std::vector<uint256>(); |
| 80 | } |
| 81 | return vhashHeadBlocks; |
| 82 | } |
| 83 | |
| 84 | bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) { |
| 85 | CDBBatch batch(db); |