Create a copy of a channel.db file in safe/read-only mode
This command opens a database in read-only mode and tries to create a copy of it to a destination file, compacting it in the process.
chantools compactdb [flags]
chantools compactdb \
--sourcedb ~/.lnd/data/graph/mainnet/channel.db \
--destdb ./results/compacted.db
--destdb string new lnd channel.db file to copy the compacted database to
-h, --help help for compactdb
--sourcedb string lnd channel.db file to create the database backup from
--txmaxsize int maximum transaction size (default 65536)
-r, --regtest Indicates if regtest parameters should be used
-s, --signet Indicates if the public signet parameters should be used
-t, --testnet Indicates if testnet parameters should be used
- chantools - Chantools helps recover funds from lightning channels