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
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,6 @@ use core::convert::TryInto;
53
53
use core::ops::Deref;
54
54
#[cfg(any(test, fuzzing, debug_assertions))]
55
55
use crate::sync::Mutex;
56
-
use bitcoin::hashes::hex::ToHex;
57
56
use crate::sign::type_resolver::ChannelSignerType;
58
57
59
58
#[cfg(test)]
@@ -4474,12 +4473,12 @@ impl<SP: Deref> Channel<SP> where
4474
4473
assert_eq!(self.context.channel_state & ChannelState::ShutdownComplete as u32, 0);
4475
4474
4476
4475
if !script::is_bolt2_compliant(&msg.scriptpubkey, their_features) {
4477
-
return Err(ChannelError::Warn(format!("Got a nonstandard scriptpubkey ({}) from remote peer", msg.scriptpubkey.to_bytes().to_hex())));
4476
+
return Err(ChannelError::Warn(format!("Got a nonstandard scriptpubkey ({}) from remote peer", msg.scriptpubkey.to_hex_string())));
4478
4477
}
4479
4478
4480
4479
if self.context.counterparty_shutdown_scriptpubkey.is_some() {
4481
4480
if Some(&msg.scriptpubkey) != self.context.counterparty_shutdown_scriptpubkey.as_ref() {
4482
-
return Err(ChannelError::Warn(format!("Got shutdown request with a scriptpubkey ({}) which did not match their previous scriptpubkey.", msg.scriptpubkey.to_bytes().to_hex())));
4481
+
return Err(ChannelError::Warn(format!("Got shutdown request with a scriptpubkey ({}) which did not match their previous scriptpubkey.", msg.scriptpubkey.to_hex_string())));
0 commit comments