mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-20 13:27:27 +02:00
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
|
||
|---|---|---|
| .. | ||
| arg_parse.go | ||
| arg_parse_test.go | ||
| autopilotrpc_active.go | ||
| autopilotrpc_default.go | ||
| chainrpc_active.go | ||
| chainrpc_default.go | ||
| cmd_custom.go | ||
| cmd_debug.go | ||
| cmd_import_mission_control.go | ||
| cmd_invoice.go | ||
| cmd_macaroon.go | ||
| cmd_mission_control.go | ||
| cmd_open_channel.go | ||
| cmd_payments.go | ||
| cmd_profile.go | ||
| cmd_state.go | ||
| cmd_update_chan_status.go | ||
| cmd_version.go | ||
| cmd_walletunlocker.go | ||
| cmd_walletunlocker_test.go | ||
| commands.go | ||
| commands_test.go | ||
| devrpc_active.go | ||
| devrpc_default.go | ||
| invoicesrpc_active.go | ||
| invoicesrpc_default.go | ||
| macaroon_jar.go | ||
| macaroon_jar_test.go | ||
| main.go | ||
| neutrino_active.go | ||
| neutrino_default.go | ||
| peersrpc_active.go | ||
| peersrpc_default.go | ||
| profile.go | ||
| routerrpc.go | ||
| walletrpc_active.go | ||
| walletrpc_default.go | ||
| walletrpc_types.go | ||
| watchtower_active.go | ||
| watchtower_default.go | ||
| wtclient.go | ||