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. */
| 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. */ |
| 359 | static void LAST_ARG_NULL |
| 360 | start_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 | |
| 377 | static void strip_trailing_whitespace(char *str, size_t len) |
| 378 | { |
no test coverage detected