From 4da5b6f2127a8adb83bbfe62e7c2fe5be7eb7449 Mon Sep 17 00:00:00 2001 From: Oli Date: Wed, 4 Mar 2026 07:01:23 +0100 Subject: [PATCH] root+doc: add --testnet4 flag --- cmd/chantools/root.go | 8 +++ doc/chantools.md | 2 + doc/chantools_chanbackup.md | 1 + doc/chantools_closepoolaccount.md | 1 + doc/chantools_compactdb.md | 1 + doc/chantools_completion.md | 35 +++++++++++++ doc/chantools_completion_bash.md | 54 ++++++++++++++++++++ doc/chantools_completion_fish.md | 45 +++++++++++++++++ doc/chantools_completion_powershell.md | 42 ++++++++++++++++ doc/chantools_completion_zsh.md | 56 +++++++++++++++++++++ doc/chantools_createwallet.md | 1 + doc/chantools_deletepayments.md | 1 + doc/chantools_derivekey.md | 1 + doc/chantools_doublespendinputs.md | 1 + doc/chantools_dropchannelgraph.md | 1 + doc/chantools_dropgraphzombies.md | 1 + doc/chantools_dumpbackup.md | 1 + doc/chantools_dumpchannels.md | 1 + doc/chantools_fakechanbackup.md | 3 +- doc/chantools_filterbackup.md | 1 + doc/chantools_fixoldbackup.md | 1 + doc/chantools_forceclose.md | 1 + doc/chantools_genimportscript.md | 1 + doc/chantools_migratedb.md | 1 + doc/chantools_pullanchor.md | 1 + doc/chantools_recoverloopin.md | 1 + doc/chantools_removechannel.md | 1 + doc/chantools_rescueclosed.md | 1 + doc/chantools_rescuefunding.md | 1 + doc/chantools_rescuetweakedkey.md | 1 + doc/chantools_scbforceclose.md | 2 + doc/chantools_showrootkey.md | 1 + doc/chantools_signmessage.md | 1 + doc/chantools_signpsbt.md | 1 + doc/chantools_signrescuefunding.md | 1 + doc/chantools_summary.md | 1 + doc/chantools_sweepremoteclosed.md | 1 + doc/chantools_sweeptimelock.md | 1 + doc/chantools_sweeptimelockmanual.md | 1 + doc/chantools_triggerforceclose.md | 1 + doc/chantools_vanitygen.md | 1 + doc/chantools_walletinfo.md | 1 + doc/chantools_zombierecovery.md | 1 + doc/chantools_zombierecovery_findmatches.md | 1 + doc/chantools_zombierecovery_makeoffer.md | 1 + doc/chantools_zombierecovery_preparekeys.md | 1 + doc/chantools_zombierecovery_signoffer.md | 1 + 47 files changed, 284 insertions(+), 1 deletion(-) create mode 100644 doc/chantools_completion.md create mode 100644 doc/chantools_completion_bash.md create mode 100644 doc/chantools_completion_fish.md create mode 100644 doc/chantools_completion_powershell.md create mode 100644 doc/chantools_completion_zsh.md diff --git a/cmd/chantools/root.go b/cmd/chantools/root.go index a0cc83d..52a0ac5 100644 --- a/cmd/chantools/root.go +++ b/cmd/chantools/root.go @@ -49,6 +49,7 @@ const ( var ( Testnet bool + Testnet4 bool Regtest bool Signet bool NoLogFile bool @@ -72,6 +73,9 @@ https://github.com/lightninglabs/chantools/.`, case Testnet: chainParams = &chaincfg.TestNet3Params + case Testnet4: + chainParams = &chaincfg.TestNet4Params + case Regtest: chainParams = &chaincfg.RegressionNetParams @@ -95,6 +99,10 @@ func main() { &Testnet, "testnet", "t", false, "Indicates if testnet "+ "parameters should be used", ) + rootCmd.PersistentFlags().BoolVar( + &Testnet4, "testnet4", false, "Indicates if testnet4 "+ + "parameters should be used", + ) rootCmd.PersistentFlags().BoolVarP( &Regtest, "regtest", "r", false, "Indicates if regtest "+ "parameters should be used", diff --git a/doc/chantools.md b/doc/chantools.md index 9300072..56db82e 100644 --- a/doc/chantools.md +++ b/doc/chantools.md @@ -18,6 +18,7 @@ https://github.com/lightninglabs/chantools/. --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO @@ -25,6 +26,7 @@ https://github.com/lightninglabs/chantools/. * [chantools chanbackup](chantools_chanbackup.md) - Create a channel.backup file from a channel database * [chantools closepoolaccount](chantools_closepoolaccount.md) - Tries to close a Pool account that has expired * [chantools compactdb](chantools_compactdb.md) - Create a copy of a channel.db file in safe/read-only mode +* [chantools completion](chantools_completion.md) - Generate the autocompletion script for the specified shell * [chantools createwallet](chantools_createwallet.md) - Create a new lnd compatible wallet.db file from an existing seed or by generating a new one * [chantools deletepayments](chantools_deletepayments.md) - Remove all (failed) payments from a channel DB * [chantools derivekey](chantools_derivekey.md) - Derive a key with a specific derivation path diff --git a/doc/chantools_chanbackup.md b/doc/chantools_chanbackup.md index 2277427..8ec4a56 100644 --- a/doc/chantools_chanbackup.md +++ b/doc/chantools_chanbackup.md @@ -38,6 +38,7 @@ chantools chanbackup \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_closepoolaccount.md b/doc/chantools_closepoolaccount.md index 0b31bc9..5982453 100644 --- a/doc/chantools_closepoolaccount.md +++ b/doc/chantools_closepoolaccount.md @@ -53,6 +53,7 @@ chantools closepoolaccount \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_compactdb.md b/doc/chantools_compactdb.md index 80aa24f..e431106 100644 --- a/doc/chantools_compactdb.md +++ b/doc/chantools_compactdb.md @@ -36,6 +36,7 @@ chantools compactdb \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_completion.md b/doc/chantools_completion.md new file mode 100644 index 0000000..5cde1de --- /dev/null +++ b/doc/chantools_completion.md @@ -0,0 +1,35 @@ +## chantools completion + +Generate the autocompletion script for the specified shell + +### Synopsis + +Generate the autocompletion script for chantools for the specified shell. +See each sub-command's help for details on how to use the generated script. + + +### Options + +``` + -h, --help help for completion +``` + +### Options inherited from parent commands + +``` + --nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file. + -r, --regtest Indicates if regtest parameters should be used + --resultsdir string Directory where results should be stored (default "./results") + -s, --signet Indicates if the public signet parameters should be used + -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used +``` + +### SEE ALSO + +* [chantools](chantools.md) - Chantools helps recover funds from lightning channels +* [chantools completion bash](chantools_completion_bash.md) - Generate the autocompletion script for bash +* [chantools completion fish](chantools_completion_fish.md) - Generate the autocompletion script for fish +* [chantools completion powershell](chantools_completion_powershell.md) - Generate the autocompletion script for powershell +* [chantools completion zsh](chantools_completion_zsh.md) - Generate the autocompletion script for zsh + diff --git a/doc/chantools_completion_bash.md b/doc/chantools_completion_bash.md new file mode 100644 index 0000000..79db28e --- /dev/null +++ b/doc/chantools_completion_bash.md @@ -0,0 +1,54 @@ +## chantools completion bash + +Generate the autocompletion script for bash + +### Synopsis + +Generate the autocompletion script for the bash shell. + +This script depends on the 'bash-completion' package. +If it is not installed already, you can install it via your OS's package manager. + +To load completions in your current shell session: + + source <(chantools completion bash) + +To load completions for every new session, execute once: + +#### Linux: + + chantools completion bash > /etc/bash_completion.d/chantools + +#### macOS: + + chantools completion bash > $(brew --prefix)/etc/bash_completion.d/chantools + +You will need to start a new shell for this setup to take effect. + + +``` +chantools completion bash +``` + +### Options + +``` + -h, --help help for bash + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file. + -r, --regtest Indicates if regtest parameters should be used + --resultsdir string Directory where results should be stored (default "./results") + -s, --signet Indicates if the public signet parameters should be used + -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used +``` + +### SEE ALSO + +* [chantools completion](chantools_completion.md) - Generate the autocompletion script for the specified shell + diff --git a/doc/chantools_completion_fish.md b/doc/chantools_completion_fish.md new file mode 100644 index 0000000..a87d59b --- /dev/null +++ b/doc/chantools_completion_fish.md @@ -0,0 +1,45 @@ +## chantools completion fish + +Generate the autocompletion script for fish + +### Synopsis + +Generate the autocompletion script for the fish shell. + +To load completions in your current shell session: + + chantools completion fish | source + +To load completions for every new session, execute once: + + chantools completion fish > ~/.config/fish/completions/chantools.fish + +You will need to start a new shell for this setup to take effect. + + +``` +chantools completion fish [flags] +``` + +### Options + +``` + -h, --help help for fish + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file. + -r, --regtest Indicates if regtest parameters should be used + --resultsdir string Directory where results should be stored (default "./results") + -s, --signet Indicates if the public signet parameters should be used + -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used +``` + +### SEE ALSO + +* [chantools completion](chantools_completion.md) - Generate the autocompletion script for the specified shell + diff --git a/doc/chantools_completion_powershell.md b/doc/chantools_completion_powershell.md new file mode 100644 index 0000000..44ff24e --- /dev/null +++ b/doc/chantools_completion_powershell.md @@ -0,0 +1,42 @@ +## chantools completion powershell + +Generate the autocompletion script for powershell + +### Synopsis + +Generate the autocompletion script for powershell. + +To load completions in your current shell session: + + chantools completion powershell | Out-String | Invoke-Expression + +To load completions for every new session, add the output of the above command +to your powershell profile. + + +``` +chantools completion powershell [flags] +``` + +### Options + +``` + -h, --help help for powershell + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file. + -r, --regtest Indicates if regtest parameters should be used + --resultsdir string Directory where results should be stored (default "./results") + -s, --signet Indicates if the public signet parameters should be used + -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used +``` + +### SEE ALSO + +* [chantools completion](chantools_completion.md) - Generate the autocompletion script for the specified shell + diff --git a/doc/chantools_completion_zsh.md b/doc/chantools_completion_zsh.md new file mode 100644 index 0000000..6313236 --- /dev/null +++ b/doc/chantools_completion_zsh.md @@ -0,0 +1,56 @@ +## chantools completion zsh + +Generate the autocompletion script for zsh + +### Synopsis + +Generate the autocompletion script for the zsh shell. + +If shell completion is not already enabled in your environment you will need +to enable it. You can execute the following once: + + echo "autoload -U compinit; compinit" >> ~/.zshrc + +To load completions in your current shell session: + + source <(chantools completion zsh) + +To load completions for every new session, execute once: + +#### Linux: + + chantools completion zsh > "${fpath[1]}/_chantools" + +#### macOS: + + chantools completion zsh > $(brew --prefix)/share/zsh/site-functions/_chantools + +You will need to start a new shell for this setup to take effect. + + +``` +chantools completion zsh [flags] +``` + +### Options + +``` + -h, --help help for zsh + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file. + -r, --regtest Indicates if regtest parameters should be used + --resultsdir string Directory where results should be stored (default "./results") + -s, --signet Indicates if the public signet parameters should be used + -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used +``` + +### SEE ALSO + +* [chantools completion](chantools_completion.md) - Generate the autocompletion script for the specified shell + diff --git a/doc/chantools_createwallet.md b/doc/chantools_createwallet.md index 6ee3ea7..ffc0e1b 100644 --- a/doc/chantools_createwallet.md +++ b/doc/chantools_createwallet.md @@ -38,6 +38,7 @@ chantools createwallet \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_deletepayments.md b/doc/chantools_deletepayments.md index f1d751b..e7f6727 100644 --- a/doc/chantools_deletepayments.md +++ b/doc/chantools_deletepayments.md @@ -39,6 +39,7 @@ chantools deletepayments --failedonly \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_derivekey.md b/doc/chantools_derivekey.md index 85d2bb6..98bc692 100644 --- a/doc/chantools_derivekey.md +++ b/doc/chantools_derivekey.md @@ -41,6 +41,7 @@ chantools derivekey --identity --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_doublespendinputs.md b/doc/chantools_doublespendinputs.md index 00d54ff..d81e4e7 100644 --- a/doc/chantools_doublespendinputs.md +++ b/doc/chantools_doublespendinputs.md @@ -45,6 +45,7 @@ chantools doublespendinputs \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_dropchannelgraph.md b/doc/chantools_dropchannelgraph.md index 3f84063..bec1b4a 100644 --- a/doc/chantools_dropchannelgraph.md +++ b/doc/chantools_dropchannelgraph.md @@ -49,6 +49,7 @@ chantools dropchannelgraph \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_dropgraphzombies.md b/doc/chantools_dropgraphzombies.md index ba6575a..1ee9bfe 100644 --- a/doc/chantools_dropgraphzombies.md +++ b/doc/chantools_dropgraphzombies.md @@ -40,6 +40,7 @@ chantools dropgraphzombies \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_dumpbackup.md b/doc/chantools_dumpbackup.md index 5338418..c31405c 100644 --- a/doc/chantools_dumpbackup.md +++ b/doc/chantools_dumpbackup.md @@ -36,6 +36,7 @@ chantools dumpbackup \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_dumpchannels.md b/doc/chantools_dumpchannels.md index 0e9e001..c43f9fd 100644 --- a/doc/chantools_dumpchannels.md +++ b/doc/chantools_dumpchannels.md @@ -36,6 +36,7 @@ chantools dumpchannels \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_fakechanbackup.md b/doc/chantools_fakechanbackup.md index 11f349c..6869b81 100644 --- a/doc/chantools_fakechanbackup.md +++ b/doc/chantools_fakechanbackup.md @@ -61,7 +61,7 @@ chantools fakechanbackup --from_channel_graph lncli_describegraph.json \ --channelpoint string funding transaction outpoint of the channel to rescue (:) as it is displayed on 1ml.com --from_channel_graph string the full LN channel graph in the JSON format that the 'lncli describegraph' returns -h, --help help for fakechanbackup - --multi_file string the fake channel backup file to create (default "results/fake-2025-07-06-14-25-48.backup") + --multi_file string the fake channel backup file to create (default "./results/fake-2026-03-04-07-03-26.backup") --remote_node_addr string the remote node connection information in the format pubkey@host:port --rootkey string BIP32 HD root key of the wallet to use for encrypting the backup; leave empty to prompt for lnd 24 word aezeed --short_channel_id string the short channel ID in the format xx @@ -76,6 +76,7 @@ chantools fakechanbackup --from_channel_graph lncli_describegraph.json \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_filterbackup.md b/doc/chantools_filterbackup.md index 8f7d26b..1ab5ce0 100644 --- a/doc/chantools_filterbackup.md +++ b/doc/chantools_filterbackup.md @@ -38,6 +38,7 @@ chantools filterbackup \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_fixoldbackup.md b/doc/chantools_fixoldbackup.md index 380b6b5..86d3d56 100644 --- a/doc/chantools_fixoldbackup.md +++ b/doc/chantools_fixoldbackup.md @@ -39,6 +39,7 @@ chantools fixoldbackup \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_forceclose.md b/doc/chantools_forceclose.md index 6a8c3cb..d35af1b 100644 --- a/doc/chantools_forceclose.md +++ b/doc/chantools_forceclose.md @@ -56,6 +56,7 @@ chantools forceclose \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_genimportscript.md b/doc/chantools_genimportscript.md index f7e1698..f27545b 100644 --- a/doc/chantools_genimportscript.md +++ b/doc/chantools_genimportscript.md @@ -62,6 +62,7 @@ chantools genimportscript --format bitcoin-cli \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_migratedb.md b/doc/chantools_migratedb.md index 9db98d0..0cba981 100644 --- a/doc/chantools_migratedb.md +++ b/doc/chantools_migratedb.md @@ -39,6 +39,7 @@ chantools migratedb \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_pullanchor.md b/doc/chantools_pullanchor.md index ce61e47..c24eb1c 100644 --- a/doc/chantools_pullanchor.md +++ b/doc/chantools_pullanchor.md @@ -44,6 +44,7 @@ chantools pullanchor \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_recoverloopin.md b/doc/chantools_recoverloopin.md index fc2216d..2d8ce03 100644 --- a/doc/chantools_recoverloopin.md +++ b/doc/chantools_recoverloopin.md @@ -47,6 +47,7 @@ chantools recoverloopin \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_removechannel.md b/doc/chantools_removechannel.md index ce8234d..1bade91 100644 --- a/doc/chantools_removechannel.md +++ b/doc/chantools_removechannel.md @@ -41,6 +41,7 @@ chantools removechannel \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_rescueclosed.md b/doc/chantools_rescueclosed.md index a7c4499..4815f2c 100644 --- a/doc/chantools_rescueclosed.md +++ b/doc/chantools_rescueclosed.md @@ -73,6 +73,7 @@ chantools rescueclosed --fromsummary results/summary-xxxxxx.json \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_rescuefunding.md b/doc/chantools_rescuefunding.md index 633c960..142eb15 100644 --- a/doc/chantools_rescuefunding.md +++ b/doc/chantools_rescuefunding.md @@ -61,6 +61,7 @@ chantools rescuefunding \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_rescuetweakedkey.md b/doc/chantools_rescuetweakedkey.md index dadf9ba..ecfd346 100644 --- a/doc/chantools_rescuetweakedkey.md +++ b/doc/chantools_rescuetweakedkey.md @@ -40,6 +40,7 @@ chantools rescuetweakedkey \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_scbforceclose.md b/doc/chantools_scbforceclose.md index dc52734..2be852a 100644 --- a/doc/chantools_scbforceclose.md +++ b/doc/chantools_scbforceclose.md @@ -33,6 +33,7 @@ chantools scbforceclose --multi_file channel.backup ``` --apiurl string API URL to use (must be esplora compatible) (default "https://api.node-recovery.com") --bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag + --channel_point string a single channel point of a channel to force close, in case a multi backup or multi file was provided but not all channels should be force-closed -h, --help help for scbforceclose --multi_backup string a hex encoded multi-channel backup obtained from exportchanbackup for force-closing channels --multi_file string the path to a single-channel backup file (channel.backup) @@ -51,6 +52,7 @@ chantools scbforceclose --multi_file channel.backup --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_showrootkey.md b/doc/chantools_showrootkey.md index 21251e2..19cecb1 100644 --- a/doc/chantools_showrootkey.md +++ b/doc/chantools_showrootkey.md @@ -35,6 +35,7 @@ chantools showrootkey --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_signmessage.md b/doc/chantools_signmessage.md index 58612ca..c8d1c72 100644 --- a/doc/chantools_signmessage.md +++ b/doc/chantools_signmessage.md @@ -35,6 +35,7 @@ chantools signmessage --msg=foobar --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_signpsbt.md b/doc/chantools_signpsbt.md index 6ced346..0df3e66 100644 --- a/doc/chantools_signpsbt.md +++ b/doc/chantools_signpsbt.md @@ -40,6 +40,7 @@ chantools signpsbt --fromrawpsbtfile --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_signrescuefunding.md b/doc/chantools_signrescuefunding.md index ee62061..903c188 100644 --- a/doc/chantools_signrescuefunding.md +++ b/doc/chantools_signrescuefunding.md @@ -41,6 +41,7 @@ chantools signrescuefunding \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_summary.md b/doc/chantools_summary.md index 4d277e7..d78dca0 100644 --- a/doc/chantools_summary.md +++ b/doc/chantools_summary.md @@ -41,6 +41,7 @@ chantools summary --fromchanneldb ~/.lnd/data/graph/mainnet/channel.db --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_sweepremoteclosed.md b/doc/chantools_sweepremoteclosed.md index f810d04..335ac80 100644 --- a/doc/chantools_sweepremoteclosed.md +++ b/doc/chantools_sweepremoteclosed.md @@ -55,6 +55,7 @@ chantools sweepremoteclosed \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_sweeptimelock.md b/doc/chantools_sweeptimelock.md index a6149d4..595e9d3 100644 --- a/doc/chantools_sweeptimelock.md +++ b/doc/chantools_sweeptimelock.md @@ -53,6 +53,7 @@ chantools sweeptimelock \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_sweeptimelockmanual.md b/doc/chantools_sweeptimelockmanual.md index a974151..4dcec89 100644 --- a/doc/chantools_sweeptimelockmanual.md +++ b/doc/chantools_sweeptimelockmanual.md @@ -75,6 +75,7 @@ chantools sweeptimelockmanual \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_triggerforceclose.md b/doc/chantools_triggerforceclose.md index 68d771e..b88b372 100644 --- a/doc/chantools_triggerforceclose.md +++ b/doc/chantools_triggerforceclose.md @@ -44,6 +44,7 @@ chantools triggerforceclose \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_vanitygen.md b/doc/chantools_vanitygen.md index a6e6596..702372d 100644 --- a/doc/chantools_vanitygen.md +++ b/doc/chantools_vanitygen.md @@ -46,6 +46,7 @@ chantools vanitygen --prefix 022222 --threads 8 --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_walletinfo.md b/doc/chantools_walletinfo.md index 78d1101..b09307d 100644 --- a/doc/chantools_walletinfo.md +++ b/doc/chantools_walletinfo.md @@ -43,6 +43,7 @@ chantools walletinfo --withrootkey \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_zombierecovery.md b/doc/chantools_zombierecovery.md index 334243e..a319d23 100644 --- a/doc/chantools_zombierecovery.md +++ b/doc/chantools_zombierecovery.md @@ -32,6 +32,7 @@ chantools zombierecovery [flags] --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_zombierecovery_findmatches.md b/doc/chantools_zombierecovery_findmatches.md index 15c2ad0..2c07a6b 100644 --- a/doc/chantools_zombierecovery_findmatches.md +++ b/doc/chantools_zombierecovery_findmatches.md @@ -41,6 +41,7 @@ chantools zombierecovery findmatches \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_zombierecovery_makeoffer.md b/doc/chantools_zombierecovery_makeoffer.md index 0e9fb39..4e53560 100644 --- a/doc/chantools_zombierecovery_makeoffer.md +++ b/doc/chantools_zombierecovery_makeoffer.md @@ -47,6 +47,7 @@ chantools zombierecovery makeoffer \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_zombierecovery_preparekeys.md b/doc/chantools_zombierecovery_preparekeys.md index 8325d9d..ff4fe49 100644 --- a/doc/chantools_zombierecovery_preparekeys.md +++ b/doc/chantools_zombierecovery_preparekeys.md @@ -43,6 +43,7 @@ chantools zombierecovery preparekeys \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO diff --git a/doc/chantools_zombierecovery_signoffer.md b/doc/chantools_zombierecovery_signoffer.md index 6a1210f..8d07376 100644 --- a/doc/chantools_zombierecovery_signoffer.md +++ b/doc/chantools_zombierecovery_signoffer.md @@ -40,6 +40,7 @@ chantools zombierecovery signoffer \ --resultsdir string Directory where results should be stored (default "./results") -s, --signet Indicates if the public signet parameters should be used -t, --testnet Indicates if testnet parameters should be used + --testnet4 Indicates if testnet4 parameters should be used ``` ### SEE ALSO