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

Method WriteBlockIndex

src/persistence/blockdb.cpp:24–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

UpdateBlockIndexDBFunction · 0.80
InvalidBlockFoundFunction · 0.80
ConnectBlockFunction · 0.80
AddToBlockIndexFunction · 0.80

Calls 2

GenDbKeyFunction · 0.85
GetBlockHashMethod · 0.45

Tested by

no test coverage detected