-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added temporary_channel_id
to create_channel
.
#2699
Added temporary_channel_id
to create_channel
.
#2699
Conversation
f383319
to
6d0ab1c
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2699 +/- ##
==========================================
+ Coverage 88.78% 88.79% +0.01%
==========================================
Files 113 113
Lines 89116 89126 +10
Branches 89116 89126 +10
==========================================
+ Hits 79123 79143 +20
+ Misses 7752 7735 -17
- Partials 2241 2248 +7
☔ View full report in Codecov by Sentry. |
6d0ab1c
to
5003e7a
Compare
LGTM after CI is fixed |
5003e7a
to
5f88eb4
Compare
lightning/src/ln/channel.rs
Outdated
@@ -5876,7 +5876,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider { | |||
pub fn new<ES: Deref, F: Deref>( | |||
fee_estimator: &LowerBoundedFeeEstimator<F>, entropy_source: &ES, signer_provider: &SP, counterparty_node_id: PublicKey, their_features: &InitFeatures, | |||
channel_value_satoshis: u64, push_msat: u64, user_id: u128, config: &UserConfig, current_chain_height: u32, | |||
outbound_scid_alias: u64 | |||
outbound_scid_alias: u64, temporary_channel_id_opt: Option<ChannelId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in channel_manager public api we named it just "temporary_channel_id", lets rename to that for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured I wouldn't be able to do that because I do let temporary_channel_id = ...
below, but it looks like Rust allows it!
5f88eb4
to
2b8bbf1
Compare
By default, LDK will generate the initial temporary channel ID for you. However, in certain cases, it's desirable to have a temporary channel ID specified by the caller in case of any pre-negotiation that needs to happen between peers prior to the channel open message. For example, LND has a `FundingShim` API that allows for advanced funding flows based on the temporary channel ID of the channel. This patch adds support for optionally specifying the temporary channel ID of the channel through the `create_channel` API.
2b8bbf1
to
bf39507
Compare
By default, LDK will generate the initial temporary channel ID for you. However, in certain cases, it's desirable to have a temporary channel ID specified by the caller in case of any pre-negotiation that needs to happen between peers prior to the channel open message. For example, LND has a
FundingShim
API that allows for advanced funding flows based on the temporary channel ID of the channel.This patch adds support for optionally specifying the temporary channel ID of the channel through the
create_channel
API.