@@ -561,11 +561,11 @@ impl<'a, 'b, 'c> Drop for Node<'a, 'b, 'c> {
561
561
}
562
562
}
563
563
564
- pub fn create_chan_between_nodes < ' a , ' b , ' c , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > ) -> ( msgs:: ChannelAnnouncement , msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
564
+ pub fn create_chan_between_nodes < ' a , ' b , ' c : ' d , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > ) -> ( msgs:: ChannelAnnouncement , msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
565
565
create_chan_between_nodes_with_value ( node_a, node_b, 100000 , 10001 )
566
566
}
567
567
568
- pub fn create_chan_between_nodes_with_value < ' a , ' b , ' c , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , channel_value : u64 , push_msat : u64 ) -> ( msgs:: ChannelAnnouncement , msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
568
+ pub fn create_chan_between_nodes_with_value < ' a , ' b , ' c : ' d , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , channel_value : u64 , push_msat : u64 ) -> ( msgs:: ChannelAnnouncement , msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
569
569
let ( channel_ready, channel_id, tx) = create_chan_between_nodes_with_value_a ( node_a, node_b, channel_value, push_msat) ;
570
570
let ( announcement, as_update, bs_update) = create_chan_between_nodes_with_value_b ( node_a, node_b, & channel_ready) ;
571
571
( announcement, as_update, bs_update, channel_id, tx)
@@ -1169,7 +1169,7 @@ pub fn create_chan_between_nodes_with_value_confirm_second<'a, 'b, 'c>(node_recv
1169
1169
} ) , channel_id)
1170
1170
}
1171
1171
1172
- pub fn create_chan_between_nodes_with_value_confirm < ' a , ' b , ' c , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , tx : & Transaction ) -> ( ( msgs:: ChannelReady , msgs:: AnnouncementSignatures ) , [ u8 ; 32 ] ) {
1172
+ pub fn create_chan_between_nodes_with_value_confirm < ' a , ' b , ' c : ' d , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , tx : & Transaction ) -> ( ( msgs:: ChannelReady , msgs:: AnnouncementSignatures ) , [ u8 ; 32 ] ) {
1173
1173
let conf_height = core:: cmp:: max ( node_a. best_block_info ( ) . 1 + 1 , node_b. best_block_info ( ) . 1 + 1 ) ;
1174
1174
create_chan_between_nodes_with_value_confirm_first ( node_a, node_b, tx, conf_height) ;
1175
1175
confirm_transaction_at ( node_a, tx, conf_height) ;
@@ -1178,7 +1178,7 @@ pub fn create_chan_between_nodes_with_value_confirm<'a, 'b, 'c, 'd>(node_a: &'a
1178
1178
create_chan_between_nodes_with_value_confirm_second ( node_b, node_a)
1179
1179
}
1180
1180
1181
- pub fn create_chan_between_nodes_with_value_a < ' a , ' b , ' c , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , channel_value : u64 , push_msat : u64 ) -> ( ( msgs:: ChannelReady , msgs:: AnnouncementSignatures ) , [ u8 ; 32 ] , Transaction ) {
1181
+ pub fn create_chan_between_nodes_with_value_a < ' a , ' b , ' c : ' d , ' d > ( node_a : & ' a Node < ' b , ' c , ' d > , node_b : & ' a Node < ' b , ' c , ' d > , channel_value : u64 , push_msat : u64 ) -> ( ( msgs:: ChannelReady , msgs:: AnnouncementSignatures ) , [ u8 ; 32 ] , Transaction ) {
1182
1182
let tx = create_chan_between_nodes_with_value_init ( node_a, node_b, channel_value, push_msat) ;
1183
1183
let ( msgs, chan_id) = create_chan_between_nodes_with_value_confirm ( node_a, node_b, & tx) ;
1184
1184
( msgs, chan_id, tx)
@@ -1218,11 +1218,11 @@ pub fn create_chan_between_nodes_with_value_b<'a, 'b, 'c>(node_a: &Node<'a, 'b,
1218
1218
( ( * announcement) . clone ( ) , as_update, bs_update)
1219
1219
}
1220
1220
1221
- pub fn create_announced_chan_between_nodes < ' a , ' b , ' c , ' d > ( nodes : & ' a Vec < Node < ' b , ' c , ' d > > , a : usize , b : usize ) -> ( msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
1221
+ pub fn create_announced_chan_between_nodes < ' a , ' b , ' c : ' d , ' d > ( nodes : & ' a Vec < Node < ' b , ' c , ' d > > , a : usize , b : usize ) -> ( msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
1222
1222
create_announced_chan_between_nodes_with_value ( nodes, a, b, 100000 , 10001 )
1223
1223
}
1224
1224
1225
- pub fn create_announced_chan_between_nodes_with_value < ' a , ' b , ' c , ' d > ( nodes : & ' a Vec < Node < ' b , ' c , ' d > > , a : usize , b : usize , channel_value : u64 , push_msat : u64 ) -> ( msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
1225
+ pub fn create_announced_chan_between_nodes_with_value < ' a , ' b , ' c : ' d , ' d > ( nodes : & ' a Vec < Node < ' b , ' c , ' d > > , a : usize , b : usize , channel_value : u64 , push_msat : u64 ) -> ( msgs:: ChannelUpdate , msgs:: ChannelUpdate , [ u8 ; 32 ] , Transaction ) {
1226
1226
let chan_announcement = create_chan_between_nodes_with_value ( & nodes[ a] , & nodes[ b] , channel_value, push_msat) ;
1227
1227
update_nodes_with_chan_announce ( nodes, a, b, & chan_announcement. 0 , & chan_announcement. 1 , & chan_announcement. 2 ) ;
1228
1228
( chan_announcement. 1 , chan_announcement. 2 , chan_announcement. 3 , chan_announcement. 4 )
0 commit comments