You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(APIError::ChannelUnavailable{err:"Cannot begin shutdown while peer is disconnected or we're waiting on a monitor update, maybe force-close instead?".to_owned()});
4472
4472
}
4473
4473
4474
-
let monitor_update = ifself.shutdown_scriptpubkey.is_none(){
let shutdown_scriptpubkey = matchself.shutdown_scriptpubkey{
4475
+
Some(_) => None,
4476
+
None => {
4477
+
let shutdown_scriptpubkey = keys_provider.get_shutdown_scriptpubkey();
4478
+
if !shutdown_scriptpubkey.is_compatible(their_features){
4479
+
returnErr(APIError::APIMisuseError{err:format!("Provided a scriptpubkey format not accepted by peer. script: ({})", shutdown_scriptpubkey.clone().into_inner().to_bytes().to_hex())});
4480
+
}
4481
+
Some(shutdown_scriptpubkey)
4482
+
},
4483
+
};
4484
+
4485
+
let monitor_update = match shutdown_scriptpubkey {
0 commit comments