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
let their_node_id = PublicKey::from_secret_key(&secp_ctx,&SecretKey::from_slice(&secp_ctx,&[42;32]).unwrap());
3989
3988
letmut config = UserConfig::new();
3990
3989
config.channel_options.announced_channel = false;
3991
-
letmut chan = Channel::new_outbound(&feeest,&keys_provider, their_node_id,rng::rand_u832(),10000000,100000,42,Arc::clone(&logger),&config).unwrap();// Nothing uses their network key in this test
3990
+
letmut chan = Channel::new_outbound(&feeest,&keys_provider, their_node_id,10000000,100000,42,Arc::clone(&logger),&config).unwrap();// Nothing uses their network key in this test
Copy file name to clipboardExpand all lines: src/ln/channelmanager.rs
+57-58Lines changed: 57 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -3021,61 +3021,60 @@ impl<'a, R : ::std::io::Read> ReadableArgs<R, ChannelManagerReadArgs<'a>> for (S
3021
3021
3022
3022
/*
3023
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.
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