Rename `inbound_is_awaiting_accept()` to `is_awaiting_accept()`
authorDuncan Dean <git@dunxen.dev>
Tue, 13 Jun 2023 15:17:59 +0000 (17:17 +0200)
committerDuncan Dean <git@dunxen.dev>
Thu, 15 Jun 2023 20:31:41 +0000 (22:31 +0200)
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs

index 0b4810030c152a3fb024179688a2e30d1532403a..e74dbe42a77d52d0ad65a5e4d179fb68f543ec29 100644 (file)
@@ -6265,7 +6265,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
        }
 
index 4dec5cb1a3243d5cd8aeeec059df97fe416348ad..164e4c2242d772c57523cac9596e68bda3269d1a 100644 (file)
@@ -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 {