]> git.bitcoin.ninja Git - rust-lightning/commit
Added `temporary_channel_id` to `create_channel`.
authorMatthew Rheaume <mhr@lightspark.com>
Tue, 31 Oct 2023 22:36:11 +0000 (15:36 -0700)
committerMatthew Rheaume <mhr@lightspark.com>
Sat, 4 Nov 2023 00:44:50 +0000 (17:44 -0700)
commitbf395070ddf0dd10527232f9ef51211c71d45195
tree09c3035c18e8626605c52cc04f8dc2076582ba79
parent281a0aead744351c43fce660cf78f955fc969bfb
Added `temporary_channel_id` to `create_channel`.

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.
14 files changed:
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning-background-processor/src/lib.rs
lightning-invoice/src/utils.rs
lightning/src/ln/async_signer_tests.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/ln/shutdown_tests.rs