Skip to content

Commit d957f36

Browse files
committed
Rename inbound_is_awaiting_accept() to is_awaiting_accept()
1 parent 8f93e2d commit d957f36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/ln/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6265,7 +6265,7 @@ impl<Signer: WriteableEcdsaChannelSigner> InboundV1Channel<Signer> {
62656265
Ok(chan)
62666266
}
62676267

6268-
pub fn inbound_is_awaiting_accept(&self) -> bool {
6268+
pub fn is_awaiting_accept(&self) -> bool {
62696269
self.context.inbound_awaiting_accept
62706270
}
62716271

lightning/src/ln/channelmanager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4886,7 +4886,7 @@ where
48864886
let is_only_peer_channel = peer_state.total_channel_count() == 1;
48874887
match peer_state.inbound_v1_channel_by_id.entry(temporary_channel_id.clone()) {
48884888
hash_map::Entry::Occupied(mut channel) => {
4889-
if !channel.get().inbound_is_awaiting_accept() {
4889+
if !channel.get().is_awaiting_accept() {
48904890
return Err(APIError::APIMisuseError { err: "The channel isn't currently awaiting to be accepted.".to_owned() });
48914891
}
48924892
if accept_0conf {

0 commit comments

Comments
 (0)