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

Method SetBestBlock

src/persistence/blockdb.cpp:134–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool CBlockDBCache::SetBestBlock(const uint256 &blockHashIn) {
135 return best_block_hash_cache.SetData(blockHashIn);
136}
137
138bool CBlockDBCache::WriteLastBlockFile(int32_t nFile) {
139 return last_block_file_cache.SetData(nFile);

Callers 3

DisconnectBlockFunction · 0.80
ProcessGenesisBlockFunction · 0.80
ConnectBlockFunction · 0.80

Calls 1

SetDataMethod · 0.45

Tested by

no test coverage detected