MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / EraseBlockIndex

Method EraseBlockIndex

src/persistence/blockdb.cpp:27–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

disconnectblockFunction · 0.80

Calls 1

GenDbKeyFunction · 0.85

Tested by

no test coverage detected