MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / handleNotifyHeaderTip

Method handleNotifyHeaderTip

src/interfaces/node.cpp:278–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276 }));
277 }
278 std::unique_ptr<Handler> handleNotifyHeaderTip(NotifyHeaderTipFn fn) override
279 {
280 return MakeHandler(
281 ::uiInterface.NotifyHeaderTip.connect([fn](bool initial_download, const CBlockIndex* block) {
282 fn(initial_download, block->nHeight, block->GetBlockTime(),
283 GuessVerificationProgress(Params().TxData(), block));
284 }));
285 }
286};
287
288} // namespace

Callers 1

Calls 4

MakeHandlerFunction · 0.85
ParamsClass · 0.50
GetBlockTimeMethod · 0.45

Tested by

no test coverage detected