Logo
Explore Help
Sign In
davide/palladum-lightning
1
0
Fork 0
You've already forked palladum-lightning
Code Issues Pull Requests Actions 5 Packages Projects Releases Wiki Activity
Files
11974a1169b99c52d9fd69c5d80bbefdd5c42075
palladum-lightning/wallet/account_migration.h

11 lines
339 B
C
Raw Normal View History

lightningd: migrate events from bookkeeper at startup. We take over the --bookkeeper-dir and --bookkeeper-db options, and then if we can find the bookkeeper db we extract the records to initialize our chain_moves and channel_moves tables. Of course, bookkeeper now needs to not register those options. When bookkeeper gets invoked the first time, it will reconstruct everything from listchannelmoves and listcoinmoves. It cannot preserve manually-added descriptions, so we put those in the datastore for it ready to go. Note that the order of onchain_fee changes slightly from the original. But this is fine. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-08-19 10:30:52 +09:30
#ifndef LIGHTNING_WALLET_ACCOUNT_MIGRATION_H
#define LIGHTNING_WALLET_ACCOUNT_MIGRATION_H
#include "config.h"
struct lightningd;
struct db;
/* Some migrations are so epic they get their own file. Not in a good way. */
void migrate_from_account_db(struct lightningd *ld, struct db *db);
#endif /* LIGHTNING_WALLET_ACCOUNT_MIGRATION_H */
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 152ms Template: 15ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API