| 22 | } |
| 23 | |
| 24 | bool CBlockIndexDB::WriteBlockIndex(const CDiskBlockIndex &blockIndex) { |
| 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 | } |
no test coverage detected