| 110 | } |
| 111 | |
| 112 | std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const { |
| 113 | std::vector<uint256> vhashHeadBlocks; |
| 114 | if (!m_db->Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) { |
| 115 | return std::vector<uint256>(); |
| 116 | } |
| 117 | return vhashHeadBlocks; |
| 118 | } |
| 119 | |
| 120 | bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) { |
| 121 | CDBBatch batch(*m_db); |