Browse Source

wallet: Move the db_fatal definition so we can use it in drivers

Signed-off-by: Christian Decker <decker.christian@gmail.com>
pull/2803/head
Christian Decker 6 years ago
committed by Rusty Russell
parent
commit
e04772ec9c
  1. 5
      wallet/db.c
  2. 5
      wallet/db_common.h

5
wallet/db.c

@ -14,11 +14,6 @@
#define DB_FILE "lightningd.sqlite3"
#define NSEC_IN_SEC 1000000000
/* For testing, we want to catch fatal messages. */
#ifndef db_fatal
#define db_fatal fatal
#endif
struct migration {
const char *sql;
void (*func)(struct lightningd *ld, struct db *db);

5
wallet/db_common.h

@ -3,6 +3,11 @@
#include "config.h"
#include <ccan/autodata/autodata.h>
#include <ccan/short_types/short_types.h>
/* For testing, we want to catch fatal messages. */
#ifndef db_fatal
#define db_fatal fatal
#endif
struct db_query {
const char *name;

Loading…
Cancel
Save