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

Method WriteGlobalFinBlock

src/persistence/blockdb.cpp:180–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 return flag_cache.GetData(name, fValue);
179}
180bool CBlockDBCache::WriteGlobalFinBlock(const int32_t height, const uint256 hash) {
181 finality_block_cache.SetData(std::make_pair(height, hash));
182 return true;
183}
184bool CBlockDBCache::ReadGlobalFinBlock(std::pair<int32_t,uint256>& block) {
185 return finality_block_cache.GetData(block);
186}

Callers 1

UpdateGlobalFinBlockMethod · 0.80

Calls 1

SetDataMethod · 0.45

Tested by

no test coverage detected