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

Method GetBestBlockHash

src/persistence/blockdb.cpp:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128uint256 CBlockDBCache::GetBestBlockHash() const {
129 uint256 blockHash;
130 best_block_hash_cache.GetData(blockHash);
131 return blockHash;
132}
133
134bool CBlockDBCache::SetBestBlock(const uint256 &blockHashIn) {
135 return best_block_hash_cache.SetData(blockHashIn);

Callers 4

DisconnectBlockFunction · 0.80
ConnectBlockFunction · 0.80
ProcessForkedChainFunction · 0.80
LoadBlockIndexDBFunction · 0.80

Calls 1

GetDataMethod · 0.45

Tested by

no test coverage detected