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

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2019-07-25 18:14:16 +02:00 committed by Rusty Russell
parent acedcc593f
commit e04772ec9c
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;