@@ -534,11 +534,11 @@ impl<'a, 'b, 'c> Drop for Node<'a, 'b, 'c> {
534534	} 
535535} 
536536
537- 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 )  { 
537+ 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 )  { 
538538	create_chan_between_nodes_with_value ( node_a,  node_b,  100000 ,  10001 ) 
539539} 
540540
541- 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 )  { 
541+ 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 )  { 
542542	let  ( channel_ready,  channel_id,  tx)  = create_chan_between_nodes_with_value_a ( node_a,  node_b,  channel_value,  push_msat) ; 
543543	let  ( announcement,  as_update,  bs_update)  = create_chan_between_nodes_with_value_b ( node_a,  node_b,  & channel_ready) ; 
544544	( announcement,  as_update,  bs_update,  channel_id,  tx) 
@@ -1078,7 +1078,7 @@ pub fn create_chan_between_nodes_with_value_confirm_second<'a, 'b, 'c>(node_recv
10781078	} ) ,  channel_id) 
10791079} 
10801080
1081- 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 ] )  { 
1081+ 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 ] )  { 
10821082	let  conf_height = core:: cmp:: max ( node_a. best_block_info ( ) . 1  + 1 ,  node_b. best_block_info ( ) . 1  + 1 ) ; 
10831083	create_chan_between_nodes_with_value_confirm_first ( node_a,  node_b,  tx,  conf_height) ; 
10841084	confirm_transaction_at ( node_a,  tx,  conf_height) ; 
@@ -1087,7 +1087,7 @@ pub fn create_chan_between_nodes_with_value_confirm<'a, 'b, 'c, 'd>(node_a: &'a
10871087	create_chan_between_nodes_with_value_confirm_second ( node_b,  node_a) 
10881088} 
10891089
1090- 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 )  { 
1090+ 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 )  { 
10911091	let  tx = create_chan_between_nodes_with_value_init ( node_a,  node_b,  channel_value,  push_msat) ; 
10921092	let  ( msgs,  chan_id)  = create_chan_between_nodes_with_value_confirm ( node_a,  node_b,  & tx) ; 
10931093	( msgs,  chan_id,  tx) 
@@ -1127,11 +1127,11 @@ pub fn create_chan_between_nodes_with_value_b<'a, 'b, 'c>(node_a: &Node<'a, 'b,
11271127	( ( * announcement) . clone ( ) ,  as_update,  bs_update) 
11281128} 
11291129
1130- 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 )  { 
1130+ 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 )  { 
11311131	create_announced_chan_between_nodes_with_value ( nodes,  a,  b,  100000 ,  10001 ) 
11321132} 
11331133
1134- 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 )  { 
1134+ 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 )  { 
11351135	let  chan_announcement = create_chan_between_nodes_with_value ( & nodes[ a] ,  & nodes[ b] ,  channel_value,  push_msat) ; 
11361136	update_nodes_with_chan_announce ( nodes,  a,  b,  & chan_announcement. 0 ,  & chan_announcement. 1 ,  & chan_announcement. 2 ) ; 
11371137	( chan_announcement. 1 ,  chan_announcement. 2 ,  chan_announcement. 3 ,  chan_announcement. 4 ) 
0 commit comments