From: Duncan Dean Date: Tue, 13 Jun 2023 15:17:59 +0000 (+0200) Subject: Rename `inbound_is_awaiting_accept()` to `is_awaiting_accept()` X-Git-Tag: v0.0.116-alpha1~10^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d957f362ff18c28ad011c93cee83227f8aca3bd9;p=rust-lightning Rename `inbound_is_awaiting_accept()` to `is_awaiting_accept()` --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 0b4810030..e74dbe42a 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -6265,7 +6265,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 4dec5cb1a..164e4c224 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -4886,7 +4886,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 {