MCPcopy Create free account
hub / github.com/ElementsProject/lightning / bitcoind_getchaininfo_

Function bitcoind_getchaininfo_

lightningd/bitcoind.c:466–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void bitcoind_getchaininfo_(struct bitcoind *bitcoind,
467 const bool first_call,
468 void (*cb)(struct bitcoind *bitcoind,
469 const char *chain,
470 u32 headercount,
471 u32 blockcount,
472 const bool ibd,
473 const bool first_call,
474 void *),
475 void *cb_arg)
476{
477 struct jsonrpc_request *req;
478 struct getchaininfo_call *call = tal(bitcoind, struct getchaininfo_call);
479
480 call->bitcoind = bitcoind;
481 call->cb = cb;
482 call->cb_arg = cb_arg;
483 call->first_call = first_call;
484
485 req = jsonrpc_request_start(bitcoind, "getchaininfo", NULL,
486 bitcoind->log,
487 NULL, getchaininfo_callback, call);
488 jsonrpc_request_end(req);
489 bitcoin_plugin_send(bitcoind, req);
490}
491
492/* `getutxout`
493 *

Callers

nothing calls this directly

Calls 2

bitcoin_plugin_sendFunction · 0.85
jsonrpc_request_endFunction · 0.70

Tested by

no test coverage detected