From 5d177903b8efc6d529e9e7403fdd1ddf8537aabc Mon Sep 17 00:00:00 2001 From: Duncan Dean Date: Tue, 13 Jun 2023 17:17:59 +0200 Subject: [PATCH] Rename `inbound_is_awaiting_accept()` to `is_awaiting_accept()` --- lightning/src/ln/channel.rs | 2 +- lightning/src/ln/channelmanager.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index f0e8ca58e6d..abcca08486f 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -6266,7 +6266,7 @@ impl InboundV1Channel { Ok(chan) } - pub fn inbound_is_awaiting_accept(&self) -> bool { + pub fn is_awaiting_accept(&self) -> bool { self.context.inbound_awaiting_accept } diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 9631ab4bc1f..5903bdf7252 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -4890,7 +4890,7 @@ where let is_only_peer_channel = peer_state.total_channel_count() == 1; match peer_state.inbound_v1_channel_by_id.entry(temporary_channel_id.clone()) { hash_map::Entry::Occupied(mut channel) => { - if !channel.get().inbound_is_awaiting_accept() { + if !channel.get().is_awaiting_accept() { return Err(APIError::APIMisuseError { err: "The channel isn't currently awaiting to be accepted.".to_owned() }); } if accept_0conf {