@@ -542,11 +542,11 @@ impl<'a, 'b, 'c> Drop for Node<'a, 'b, 'c> {
542
542
}
543
543
}
544
544
545
- 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 ) {
545
+ 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 ) {
546
546
create_chan_between_nodes_with_value ( node_a, node_b, 100000 , 10001 )
547
547
}
548
548
549
- 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 ) {
549
+ 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 ) {
550
550
let ( channel_ready, channel_id, tx) = create_chan_between_nodes_with_value_a ( node_a, node_b, channel_value, push_msat) ;
551
551
let ( announcement, as_update, bs_update) = create_chan_between_nodes_with_value_b ( node_a, node_b, & channel_ready) ;
552
552
( announcement, as_update, bs_update, channel_id, tx)
@@ -1119,7 +1119,7 @@ pub fn create_chan_between_nodes_with_value_confirm_second<'a, 'b, 'c>(node_recv
1119
1119
} ) , channel_id)
1120
1120
}
1121
1121
1122
- 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 ] ) {
1122
+ 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 ] ) {
1123
1123
let conf_height = core:: cmp:: max ( node_a. best_block_info ( ) . 1 + 1 , node_b. best_block_info ( ) . 1 + 1 ) ;
1124
1124
create_chan_between_nodes_with_value_confirm_first ( node_a, node_b, tx, conf_height) ;
1125
1125
confirm_transaction_at ( node_a, tx, conf_height) ;
@@ -1128,7 +1128,7 @@ pub fn create_chan_between_nodes_with_value_confirm<'a, 'b, 'c, 'd>(node_a: &'a
1128
1128
create_chan_between_nodes_with_value_confirm_second ( node_b, node_a)
1129
1129
}
1130
1130
1131
- 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 ) {
1131
+ 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 ) {
1132
1132
let tx = create_chan_between_nodes_with_value_init ( node_a, node_b, channel_value, push_msat) ;
1133
1133
let ( msgs, chan_id) = create_chan_between_nodes_with_value_confirm ( node_a, node_b, & tx) ;
1134
1134
( msgs, chan_id, tx)
@@ -1168,11 +1168,11 @@ pub fn create_chan_between_nodes_with_value_b<'a, 'b, 'c>(node_a: &Node<'a, 'b,
1168
1168
( ( * announcement) . clone ( ) , as_update, bs_update)
1169
1169
}
1170
1170
1171
- 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 ) {
1171
+ 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 ) {
1172
1172
create_announced_chan_between_nodes_with_value ( nodes, a, b, 100000 , 10001 )
1173
1173
}
1174
1174
1175
- 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 ) {
1175
+ 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 ) {
1176
1176
let chan_announcement = create_chan_between_nodes_with_value ( & nodes[ a] , & nodes[ b] , channel_value, push_msat) ;
1177
1177
update_nodes_with_chan_announce ( nodes, a, b, & chan_announcement. 0 , & chan_announcement. 1 , & chan_announcement. 2 ) ;
1178
1178
( chan_announcement. 1 , chan_announcement. 2 , chan_announcement. 3 , chan_announcement. 4 )
0 commit comments