| 112 | } |
| 113 | |
| 114 | std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const { |
| 115 | std::vector<uint256> vhashHeadBlocks; |
| 116 | if (!m_db->Read(DB_HEAD_BLOCKS, vhashHeadBlocks)) { |
| 117 | return std::vector<uint256>(); |
| 118 | } |
| 119 | return vhashHeadBlocks; |
| 120 | } |
| 121 | |
| 122 | void CCoinsViewDB::BatchWrite(CoinsViewCacheCursor& cursor, const uint256& block_hash) |
| 123 | { |