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

Function start_bitcoin_cli

plugins/bcli.c:359–375  ·  view source on GitHub ↗

If ctx is non-NULL, and is freed before we return, we don't call process(). * process returns false() if it's a spurious error, and we should retry. */

Source from the content-addressed store, hash-verified

357/* If ctx is non-NULL, and is freed before we return, we don't call process().
358 * process returns false() if it's a spurious error, and we should retry. */
359static void LAST_ARG_NULL
360start_bitcoin_cli(const tal_t *ctx,
361 struct command *cmd,
362 struct command_result *(*process)(struct bitcoin_cli *),
363 bool nonzero_exit_ok,
364 enum bitcoind_prio prio,
365 void *stash,
366 const char *method,
367 ...)
368{
369 va_list ap;
370
371 va_start(ap, method);
372 start_bitcoin_cliv(ctx, cmd, process, nonzero_exit_ok, prio, stash, method,
373 ap);
374 va_end(ap);
375}
376
377static void strip_trailing_whitespace(char *str, size_t len)
378{

Callers 6

process_getblockhashFunction · 0.85
getrawblockbyheightFunction · 0.85
getchaininfoFunction · 0.85
estimatefees_nextFunction · 0.85
sendrawtransactionFunction · 0.85
getutxoutFunction · 0.85

Calls 1

start_bitcoin_clivFunction · 0.85

Tested by

no test coverage detected