lnd/cmd/commands
Olaoluwa Osuntokun ebfe7feae8
multi: rename "taproot" channel type to mean production variant
In this commit, we shuffle the CLI and RPC names so the bare "taproot"
identifier refers to the production taproot channel type (final
scripts, feature bits 80/81), i.e. the variant new integrations should
actually be using. Before this commit, "taproot" on the CLI mapped to
the staging bits, and anyone who wanted a real production taproot
channel had to spell out "taproot-final" on `lncli openchannel` or
`SIMPLE_TAPROOT_FINAL` over RPC. The recommended choice was hidden
behind the longer name.

On the CLI (`lncli openchannel --channel_type=...`):

  - "taproot" now selects the production variant (it used to mean
    staging).
  - "taproot-staging" is added for the legacy development bits, for
    peers that haven't moved over yet.
  - "taproot-final" stays as a deprecated alias for "taproot" so
    existing scripts don't break.

On the RPC (`CommitmentType`):

  - `TAPROOT = 7` is added as the canonical name for the production
    type. `SIMPLE_TAPROOT_FINAL = 7` is kept as a deprecated alias via
    `option allow_alias = true`, so existing clients keep compiling
    against the same Go constant and the wire value doesn't change.
  - `SIMPLE_TAPROOT = 5` (staging) is unchanged.
  - `SIMPLE_TAPROOT_OVERLAY = 6` is unchanged. The taproot-assets
    daemon hard-codes this distinct enum value, so it's unaffected.

Wire compat is preserved end-to-end: only the comments, enum entry
order, and the CLI string-to-enum mapping change. The numeric values
and the existing generated Go identifiers stay stable.

(cherry picked from commit 0aa1d8bdd6)
2026-05-21 19:12:35 +08:00
..
arg_parse.go cmd/commands: export StripPrefix 2024-08-23 10:58:13 +02:00
arg_parse_test.go cmd/commands: export StripPrefix 2024-08-23 10:58:13 +02:00
autopilotrpc_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
autopilotrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
chainrpc_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
chainrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_custom.go cmd/commands: fix custom message commands 2024-11-06 15:30:30 +01:00
cmd_debug.go cmd/commands: add --include_log flag to getdebuginfo CLI 2026-03-07 12:51:00 -08:00
cmd_import_mission_control.go lncli: option to skip prompts for loadmc 2025-05-06 11:13:30 +02:00
cmd_invoice.go commands: add command to delete canceled invoice 2025-07-25 21:21:58 -03:00
cmd_macaroon.go lncli: ip range caveat for macaroons 2025-03-13 09:57:41 -05:00
cmd_mission_control.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_open_channel.go multi: rename "taproot" channel type to mean production variant 2026-05-21 19:12:35 +08:00
cmd_payments.go cmd: add deletefwdhistory CLI command 2026-03-30 17:39:46 +02:00
cmd_profile.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_state.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_update_chan_status.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_version.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
cmd_walletunlocker.go lncli unlock: add unit tests 2026-02-04 15:20:03 -05:00
cmd_walletunlocker_test.go lncli unlock: add unit tests 2026-02-04 15:20:03 -05:00
commands.go cmd: EstimateFee for explicit inputs 2026-01-07 10:25:30 +01:00
commands_test.go commands: add test for parseChanIDs 2025-07-23 15:31:59 +01:00
devrpc_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
devrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
invoicesrpc_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
invoicesrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
macaroon_jar.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
macaroon_jar_test.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
main.go cmd: add deletefwdhistory CLI command 2026-03-30 17:39:46 +02:00
neutrino_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
neutrino_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
peersrpc_active.go docs: fix broadcast misspelling 2024-11-22 16:20:02 -05:00
peersrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
profile.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
routerrpc.go lncli: add loadmc command 2025-05-05 15:02:55 +02:00
walletrpc_active.go lncli: add sign subcommand to lncli wallet psbt 2026-03-24 13:13:43 +01:00
walletrpc_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
walletrpc_types.go cmd: make types.go accessible in lnd package 2026-01-07 10:25:29 +01:00
watchtower_active.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
watchtower_default.go cmd/lncli: move commands and export 2024-08-23 10:57:59 +02:00
wtclient.go cmd/wtclient: add usage info for session and terminate commands 2025-06-30 23:06:51 -03:00