Skip to content

Commit

Permalink
fixup! db: Track the data_version in the database
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Dec 19, 2019
1 parent 5a4db3c commit 73c1928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallet/test/run-wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ static struct wallet *create_test_wallet(struct lightningd *ld, const tal_t *ctx
CHECK_MSG(w->db, "Failed opening the db");
db_begin_transaction(w->db);
db_migrate(ld, w->db);
w->db->data_version = 0;
db_commit_transaction(w->db);
CHECK_MSG(!wallet_err, "DB migration failed");
w->max_channel_dbid = 0;
Expand Down

0 comments on commit 73c1928

Please sign in to comment.