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: src/ln/channelmanager.rs
+60Lines changed: 60 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3018,3 +3018,63 @@ impl<'a, R : ::std::io::Read> ReadableArgs<R, ChannelManagerReadArgs<'a>> for (S
3018
3018
Ok((last_block_hash.clone(), channel_manager))
3019
3019
}
3020
3020
}
3021
+
3022
+
/*
3023
+
#[test]
3024
+
#[should_panic]
3025
+
fn bolt2_open_channel_sending_node_checks1() { //This test needs to be on its own as we are catching a panic
3026
+
let nodes = create_network(2);
3027
+
3028
+
// BOLT #2 spec: Sending node must ensure temporary_channel_id is unique from any other channel ID with the same peer.
3029
+
// Note: currently a collision on a channel id will panic, not creating the channel with an error will be better as the system can still continue to function
// BOLT #2 spec: Sending node must set funding_pubkey, revocation_basepoint, htlc_basepoint, payment_basepoint, and delayed_payment_basepoint to valid DER-encoded, compressed, secp256k1 pubkeys.
0 commit comments