| 89 | } |
| 90 | |
| 91 | static void db_error(struct lightningd *ld, bool fatal, const char *fmt, va_list ap) |
| 92 | { |
| 93 | va_list ap2; |
| 94 | |
| 95 | va_copy(ap2, ap); |
| 96 | logv(ld->log, LOG_BROKEN, NULL, true, fmt, ap); |
| 97 | |
| 98 | if (fatal) |
| 99 | fatal_vfmt(fmt, ap2); |
| 100 | va_end(ap2); |
| 101 | } |
| 102 | |
| 103 | struct db *db_setup(const tal_t *ctx, struct lightningd *ld, |
| 104 | const struct ext_key *bip32_base) |
nothing calls this directly
no test coverage detected