Skip to content

Commit

Permalink
Rename inbound_is_awaiting_accept() to is_awaiting_accept()
Browse files Browse the repository at this point in the history
  • Loading branch information
dunxen committed Jun 14, 2023
1 parent 16e288e commit 773f785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6266,7 +6266,7 @@ impl<Signer: WriteableEcdsaChannelSigner> InboundV1Channel<Signer> {
Ok(chan)
}

pub fn inbound_is_awaiting_accept(&self) -> bool {
pub fn is_awaiting_accept(&self) -> bool {
self.context.inbound_awaiting_accept
}

Expand Down
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 773f785

Please sign in to comment.