mirror of
https://github.com/guggero/chantools
synced 2024-11-18 21:26:23 +00:00
7bd21fba58
Updated versions: - lnd: v0.17.4-beta -> v0.18.0-beta - lnd/kvdb: v1.4.4 -> v1.4.8 - lnd/tor: v1.1.2 -> v1.1.3 - lnd/healthcheck: v1.2.3 -> v1.2.4 - lnd/tlv: v1.1.1 -> v1.2.6 - neutrino: v0.16.0 -> v0.16.1-0.20240425105051-602843d34ffd - neutrino/cache: v1.1.1 -> v1.1.2 - lndclient: v0.17.4-1 -> v0.18.0-2 - loop: v0.26.6-beta -> v0.28.3 - loop/swapserverrpc: v1.0.5 -> v1.0.8 - pool: v0.6.2-beta.0.20230329135228-c3bffb52df3a -> v0.6.5-beta.0.20240531084722-4000ec802aaa - pool/auctioneerrpc: v1.0.7 -> v1.1.2 - aperture: v0.1.21-beta.0.20230705004936-87bb996a4030 -> v0.3.2-beta - replace of protobuf: v1.30.0-hex-display -> v1.33.0-hex-display - Go: 1.21 -> 1.22.3 Pool version v0.6.5-beta.0.20240531084722-4000ec802aaa was used because it uses LND v0.18.0-beta, not v0.18.0-beta.rc3. Fixed imports and API changes. Updated Go version in README. Updated LND version in cmd/chantools/root.go. Ran `make docs`.
48 lines
1.4 KiB
Markdown
48 lines
1.4 KiB
Markdown
## chantools removechannel
|
|
|
|
Remove a single channel from the given channel DB
|
|
|
|
### Synopsis
|
|
|
|
Opens the given channel DB in write mode and removes one
|
|
single channel from it. This means giving up on any state (and therefore coins)
|
|
of that channel and should only be used if the funding transaction of the
|
|
channel was never confirmed on chain!
|
|
|
|
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
|
|
run lnd v0.18.0-beta or later after using this command!
|
|
|
|
```
|
|
chantools removechannel [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
chantools removechannel \
|
|
--channeldb ~/.lnd/data/graph/mainnet/channel.db \
|
|
--channel 3149764effbe82718b280de425277e5e7b245a4573aa4a0203ac12cee1c37816:0
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--channel string channel to remove from the DB file, identified by its channel point (<txid>:<txindex>)
|
|
--channeldb string lnd channel.backup file to remove the channel from
|
|
-h, --help help for removechannel
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
-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
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|