Skip to content

Commit

Permalink
fix: change channel config type in open_(announced)_channel
Browse files Browse the repository at this point in the history
What this commit does:
+ Removes the wrapping Arc from the channel config. This is a missed
    update after rebasing.
  • Loading branch information
enigbe committed Aug 29, 2024
1 parent db5456b commit 3775bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ impl Node {
/// Opens a channel with a peer.
pub fn open_channel(
&self, node_id: PublicKey, address: SocketAddress, channel_amount_sats: u64,
push_to_counterparty_msat: Option<u64>, channel_config: Option<Arc<ChannelConfig>>,
push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>,
) -> Result<UserChannelId, Error> {
self.connect_open_channel(
node_id,
Expand All @@ -1317,7 +1317,7 @@ impl Node {
/// Opens an announced channel with a peer.
pub fn open_announced_channel(
&self, node_id: PublicKey, address: SocketAddress, channel_amount_sats: u64,
push_to_counterparty_msat: Option<u64>, channel_config: Option<Arc<ChannelConfig>>,
push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>,
) -> Result<UserChannelId, Error> {
if !can_announce_channel(&self.config) {
return Err(Error::OpenAnnouncedChannelFailed);
Expand Down

0 comments on commit 3775bad

Please sign in to comment.