@@ -1805,8 +1805,8 @@ pub fn create_chan_between_nodes_with_value_a<'a, 'b, 'c: 'd, 'd>(
18051805}
18061806
18071807pub fn create_channel_manual_funding < ' a , ' b , ' c : ' d , ' d > (
1808- nodes : & ' a Vec < Node < ' b , ' c , ' d > > , initiator : usize , counterparty : usize ,
1809- channel_value : u64 , push_msat : u64 ,
1808+ nodes : & ' a Vec < Node < ' b , ' c , ' d > > , initiator : usize , counterparty : usize , channel_value : u64 ,
1809+ push_msat : u64 ,
18101810) -> ( ChannelId , Transaction , OutPoint ) {
18111811 let node_a = & nodes[ initiator] ;
18121812 let node_b = & nodes[ counterparty] ;
@@ -1829,14 +1829,12 @@ pub fn create_channel_manual_funding<'a, 'b, 'c: 'd, 'd>(
18291829 . unwrap ( ) ;
18301830 check_added_monitors ! ( node_a, 0 ) ;
18311831
1832- let funding_created =
1833- get_event_msg ! ( node_a, MessageSendEvent :: SendFundingCreated , node_b_id) ;
1832+ let funding_created = get_event_msg ! ( node_a, MessageSendEvent :: SendFundingCreated , node_b_id) ;
18341833 node_b. node . handle_funding_created ( node_a_id, & funding_created) ;
18351834 check_added_monitors ! ( node_b, 1 ) ;
18361835 let channel_id_b = expect_channel_pending_event ( node_b, & node_a_id) ;
18371836
1838- let funding_signed =
1839- get_event_msg ! ( node_b, MessageSendEvent :: SendFundingSigned , node_a_id) ;
1837+ let funding_signed = get_event_msg ! ( node_b, MessageSendEvent :: SendFundingSigned , node_a_id) ;
18401838 node_a. node . handle_funding_signed ( node_b_id, & funding_signed) ;
18411839 check_added_monitors ! ( node_a, 1 ) ;
18421840
@@ -1849,7 +1847,7 @@ pub fn create_channel_manual_funding<'a, 'b, 'c: 'd, 'd>(
18491847 Event :: FundingTxBroadcastSafe { funding_txo, counterparty_node_id, .. } => {
18501848 assert_eq ! ( counterparty_node_id, node_b_id) ;
18511849 assert_eq ! ( funding_txo. txid, funding_txid) ;
1852- assert_eq ! ( funding_txo. vout, funding_outpoint. index. into ( ) ) ;
1850+ assert_eq ! ( funding_txo. vout, u32 :: from ( funding_outpoint. index) ) ;
18531851 } ,
18541852 Event :: ChannelPending { channel_id : pending_id, counterparty_node_id, .. } => {
18551853 assert_eq ! ( counterparty_node_id, node_b_id) ;
0 commit comments