Repository navigation
Add channel splicing, private labels and channel status improvements - #184
Open
BitcoinMechanic wants to merge 2 commits into
Open
BitcoinMechanic wants to merge 2 commits into
BitcoinMechanic wants to merge 2 commits into
Conversation
Review and confirm splice-in/out through existing CLN RPCs, retain ambiguous submissions across remounts, and derive pending confirmation counts from node state. Validate channel and peer readiness before mutation; explain the gRPC schema limitation. Keep channel lists available when label permissions are missing, map datastore modes for gRPC, normalize liquidity bars and show usable advertised peer URIs.
Author
|
Disclosure of AI use: openAI's Astra wrote all this and created the PR under my supervision. Tested with real funds and works great. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds splice-in/out to channel details using existing CLN RPCs, with an explicit review and confirmation step. It also brings the related channel-management improvements: private labels, pending-splice status, correctly scaled liquidity bars, wrapping long names/IDs and usable counterparty connection URIs.
Splicing
listpeerchannels, a transaction-ID-filtered SQL query and currentgetinfoheight. Missing SQL support/permission produces an explicit unavailable/error state rather than a guessed count. Do not invent the counterparty's required confirmation threshold.Related UI changes
cln-application/channel-labels/<channel_id>in the node datastore. Only existing channels and labels up to 80 characters without control characters are accepted. Label lookup failure preserves the channel list and displays the error. Map JSON-RPC datastore mode names to the gRPC enum for label writes.No CLN engine changes, XBT branding, fork-specific invoice validation, price-provider changes or StartOS-specific address-file integration are included. Existing offers and invoice RPCs remain available.
Validation
ff2d698inChannelOpen.test.tsxandBTCWithdraw.test.tsx, each named “should hide custom fee rate input and show slider when checkbox is unchecked again” (baseline isolated run: 42 passed, 2 failed). The full run also retained an asynchronous handle after its summary. These existing tests are not changed here. The final storage-dismissal guard adds one further passing focused test after that full run.