MCPcopy Create free account
hub / github.com/ElementsProject/elements / getBestBlockHash

Method getBestBlockHash

src/node/interfaces.cpp:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 return chainman().ActiveChain().Height();
226 }
227 uint256 getBestBlockHash() override
228 {
229 const CBlockIndex* tip = WITH_LOCK(::cs_main, return chainman().ActiveChain().Tip());
230 return tip ? tip->GetBlockHash() : Params().GenesisBlock().GetHash();
231 }
232 int64_t getLastBlockTime() override
233 {
234 LOCK(::cs_main);

Callers

nothing calls this directly

Calls 4

ParamsClass · 0.70
TipMethod · 0.45
GetBlockHashMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected