2021-01-05 11:01:34 +00:00
|
|
|
## chantools dropchannelgraph
|
|
|
|
|
|
|
|
Remove all graph related data from a channel DB
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
This command removes all graph data from a channel DB,
|
|
|
|
forcing the lnd node to do a full graph sync.
|
|
|
|
|
2021-08-13 11:10:43 +00:00
|
|
|
Or if a single channel is specified, that channel is purged from the graph
|
|
|
|
without removing any other data.
|
|
|
|
|
2021-03-01 09:14:27 +00:00
|
|
|
CAUTION: Running this command will make it impossible to use the channel DB
|
|
|
|
with an older version of lnd. Downgrading is not possible and you'll need to
|
2023-09-18 16:35:01 +00:00
|
|
|
run lnd v0.17.0-beta or later after using this command!'
|
2021-03-01 09:14:27 +00:00
|
|
|
|
2021-01-05 11:01:34 +00:00
|
|
|
```
|
|
|
|
chantools dropchannelgraph [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
```
|
|
|
|
chantools dropchannelgraph \
|
2022-09-11 17:21:18 +00:00
|
|
|
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
|
|
|
|
--node_identity_key 03......
|
2021-08-13 11:10:43 +00:00
|
|
|
|
|
|
|
chantools dropchannelgraph \
|
|
|
|
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
|
|
|
|
--single_channel 726607861215512345
|
2022-09-11 17:21:18 +00:00
|
|
|
--node_identity_key 03......
|
2021-01-05 11:01:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
2023-09-18 13:10:30 +00:00
|
|
|
--channeldb string lnd channel.db file to drop channels from
|
2022-09-11 17:21:18 +00:00
|
|
|
--fix_only fix an already empty graph by re-adding the own node's channels
|
|
|
|
-h, --help help for dropchannelgraph
|
|
|
|
--node_identity_key string your node's identity public key
|
|
|
|
--single_channel uint the single channel identified by its short channel ID (CID) to remove from the graph
|
2021-01-05 11:01:34 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
2023-09-18 13:09:44 +00:00
|
|
|
-s, --signet Indicates if the public signet parameters should be used
|
2021-01-05 11:01:34 +00:00
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
|
|
|
```
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|