| 464 | } |
| 465 | |
| 466 | void 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 | * |
nothing calls this directly
no test coverage detected