Skip to content

Commit f7fff08

Browse files
committed
Added white spaces for readability
1 parent 9f6ce0a commit f7fff08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ln/channel.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,8 @@ impl Channel {
20142014
}
20152015

20162016
//Check shutdown_scriptpubkey form as BOLT says we must
2017-
if !(msg.scriptpubkey.is_p2pkh())&&!(msg.scriptpubkey.is_p2sh())&&!(msg.scriptpubkey.is_v0_p2wpkh())&&!(msg.scriptpubkey.is_v0_p2wsh()){
2017+
if !(msg.scriptpubkey.is_p2pkh()) && !(msg.scriptpubkey.is_p2sh())
2018+
&& !(msg.scriptpubkey.is_v0_p2wpkh()) && !(msg.scriptpubkey.is_v0_p2wsh()){
20182019
return Err(HandleError{err: "Got an invalid scriptpubkey from remote peer", action: Some(msgs::ErrorAction::DisconnectPeer{ msg: None })});
20192020
}
20202021

0 commit comments

Comments
 (0)