Skip to content

Commit 6421931

Browse files
committed
wallet: separate migration table into its own source file.
This will make it easier to share with the downgrade tool. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 8f9cdeb commit 6421931

File tree

13 files changed

+1209
-1192
lines changed

13 files changed

+1209
-1192
lines changed

lightningd/test/run-invoice-select-inchan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ struct anchor_details *create_anchor_details(const tal_t *ctx UNNEEDED,
237237
const struct bitcoin_tx *tx UNNEEDED)
238238
{ fprintf(stderr, "create_anchor_details called!\n"); abort(); }
239239
/* Generated stub for delete_channel */
240-
void delete_channel(struct channel *channel STEALS UNNEEDED, bool completely_eliminate UNNEEDED)
240+
void delete_channel(struct channel *channel STEALS UNNEEDED,
241+
bool completely_eliminate UNNEEDED)
241242
{ fprintf(stderr, "delete_channel called!\n"); abort(); }
242243
/* Generated stub for depthcb_update_scid */
243244
bool depthcb_update_scid(struct channel *channel UNNEEDED,

wallet/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ WALLET_LIB_SRC := \
44
wallet/account_migration.c \
55
wallet/db.c \
66
wallet/invoices.c \
7+
wallet/migrations.c \
78
wallet/psbt_fixup.c \
89
wallet/txfilter.c \
910
wallet/wallet.c \
@@ -34,6 +35,7 @@ WALLET_SQL_FILES := \
3435
wallet/account_migration.c \
3536
wallet/db.c \
3637
wallet/invoices.c \
38+
wallet/migrations.c \
3739
wallet/wallet.c \
3840
wallet/test/run-db.c \
3941
wallet/test/run-wallet.c \

wallet/account_migration.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <lightningd/lightningd.h>
1212
#include <unistd.h>
1313
#include <wallet/account_migration.h>
14+
#include <wallet/migrations.h>
1415

1516
/* These functions and definitions copied almost exactly from old
1617
* plugins/bkpr/{recorder.c,chain_event.h,channel_event.h}

0 commit comments

Comments
 (0)