@@ -11905,8 +11905,7 @@ where
1190511905 }
1190611906
1190711907 self.propose_quiescence(logger, QuiescentAction::Splice { contribution, locktime }).map_err(
11908- |(e, action)| {
11909- log_error!(logger, "{}", e);
11908+ |action| {
1191011909 // FIXME: Any better way to do this?
1191111910 if let QuiescentAction::Splice { contribution, .. } = action {
1191211911 let (contributed_inputs, contributed_outputs) =
@@ -13046,14 +13045,19 @@ where
1304613045 #[rustfmt::skip]
1304713046 pub fn propose_quiescence<L: Logger>(
1304813047 &mut self, logger: &L, action: QuiescentAction,
13049- ) -> Result<Option<msgs::Stfu>, (&'static str, QuiescentAction) > {
13048+ ) -> Result<Option<msgs::Stfu>, QuiescentAction> {
1305013049 log_debug!(logger, "Attempting to initiate quiescence");
1305113050
1305213051 if !self.context.is_usable() {
13053- return Err(("Channel is not in a usable state to propose quiescence", action));
13052+ log_debug!(logger, "Channel is not in a usable state to propose quiescence");
13053+ return Err(action);
1305413054 }
1305513055 if self.quiescent_action.is_some() {
13056- return Err(("Channel already has a pending quiescent action and cannot start another", action));
13056+ log_debug!(
13057+ logger,
13058+ "Channel already has a pending quiescent action and cannot start another",
13059+ );
13060+ return Err(action);
1305713061 }
1305813062
1305913063 self.quiescent_action = Some(action);
0 commit comments