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

Method handleNotifyBlockTip

src/interfaces/node.cpp:271–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 return MakeHandler(::uiInterface.BannedListChanged.connect(fn));
270 }
271 std::unique_ptr<Handler> handleNotifyBlockTip(NotifyBlockTipFn fn) override
272 {
273 return MakeHandler(::uiInterface.NotifyBlockTip.connect([fn](bool initial_download, const CBlockIndex* block) {
274 fn(initial_download, block->nHeight, block->GetBlockTime(),
275 GuessVerificationProgress(Params().TxData(), block));
276 }));
277 }
278 std::unique_ptr<Handler> handleNotifyHeaderTip(NotifyHeaderTipFn fn) override
279 {
280 return MakeHandler(

Callers 1

Calls 4

MakeHandlerFunction · 0.85
ParamsClass · 0.50
GetBlockTimeMethod · 0.45

Tested by

no test coverage detected