diff --git a/wallet/db.c b/wallet/db.c index 583640e5c..08671b78c 100644 --- a/wallet/db.c +++ b/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); diff --git a/wallet/db_common.h b/wallet/db_common.h index ae621b8ed..8156d6a1f 100644 --- a/wallet/db_common.h +++ b/wallet/db_common.h @@ -3,6 +3,11 @@ #include "config.h" #include #include +/* For testing, we want to catch fatal messages. */ +#ifndef db_fatal +#define db_fatal fatal +#endif + struct db_query { const char *name;