File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -8428,9 +8428,9 @@ impl<SP: Deref> FundedChannel<SP> where
8428
8428
)});
8429
8429
}
8430
8430
8431
- if !matches!( self.context.channel_state, ChannelState::ChannelReady(_) ) {
8431
+ if !self.context.is_live( ) {
8432
8432
return Err(APIError::APIMisuseError { err: format!(
8433
- "Channel {} cannot be spliced, as channel is not Ready ",
8433
+ "Channel {} cannot be spliced, as channel is not live ",
8434
8434
self.context.channel_id()
8435
8435
)});
8436
8436
}
@@ -8500,8 +8500,8 @@ impl<SP: Deref> FundedChannel<SP> where
8500
8500
)));
8501
8501
}
8502
8502
8503
- if !matches!( self.context.channel_state, ChannelState::ChannelReady(_) ) {
8504
- return Err(ChannelError::Warn(format!("Splicing requested on a channel that is not Ready ")));
8503
+ if !self.context.is_live( ) {
8504
+ return Err(ChannelError::Warn(format!("Splicing requested on a channel that is not live ")));
8505
8505
}
8506
8506
8507
8507
// - If it has received shutdown:
Original file line number Diff line number Diff line change 7
7
// You may not use this file except in accordance with one or both of these
8
8
// licenses.
9
9
10
- //! Tests that test standing up a network of ChannelManagers, creating channels, sending
11
- //! payments/messages between them, and often checking the resulting ChannelMonitors are able to
12
- //! claim outputs on-chain.
13
-
14
10
use crate :: events:: { Event , MessageSendEvent , MessageSendEventsProvider } ;
15
11
use crate :: ln:: functional_test_utils:: * ;
16
12
use crate :: ln:: msgs:: ChannelMessageHandler ;
You can’t perform that action at this time.
0 commit comments