mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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:
parent
acedcc593f
commit
e04772ec9c
@ -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);
|
||||
|
@ -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…
Reference in New Issue
Block a user