| 25 | return Write(dbk::GenDbKey(dbk::BLOCK_INDEX, blockIndex.GetBlockHash()), blockIndex); |
| 26 | } |
| 27 | bool CBlockIndexDB::EraseBlockIndex(const uint256 &blockHash) { |
| 28 | return Erase(dbk::GenDbKey(dbk::BLOCK_INDEX, blockHash)); |
| 29 | } |
| 30 | |
| 31 | bool CBlockIndexDB::LoadBlockIndexes() { |
| 32 | leveldb::Iterator *pCursor = NewIterator(); |
no test coverage detected