@@ -33,7 +33,7 @@ fn channel_full_cycle() {
3333
3434 println ! ( "\n A -- connect_open_channel -> B" ) ;
3535 let node_b_addr = format ! ( "{}@{}" , node_b. node_id( ) , node_b. listening_address( ) . unwrap( ) ) ;
36- node_a. connect_open_channel ( & node_b_addr, 50000 , true ) . unwrap ( ) ;
36+ node_a. connect_open_channel ( & node_b_addr, 80_000 , Some ( 40_000 * 1000 ) , true ) . unwrap ( ) ;
3737
3838 expect_event ! ( node_a, ChannelPending ) ;
3939
@@ -56,8 +56,8 @@ fn channel_full_cycle() {
5656 node_b. sync_wallets ( ) . unwrap ( ) ;
5757
5858 let node_a_balance = node_a. on_chain_balance ( ) . unwrap ( ) ;
59- assert ! ( node_a_balance. get_spendable( ) < 50000 ) ;
60- assert ! ( node_a_balance. get_spendable( ) > 40000 ) ;
59+ assert ! ( node_a_balance. get_spendable( ) < 20000 ) ;
60+ assert ! ( node_a_balance. get_spendable( ) > 15000 ) ;
6161 assert_eq ! ( node_b. on_chain_balance( ) . unwrap( ) . get_spendable( ) , 100000 ) ;
6262
6363 expect_event ! ( node_a, ChannelReady ) ;
@@ -176,8 +176,8 @@ fn channel_full_cycle() {
176176 node_a. sync_wallets ( ) . unwrap ( ) ;
177177 node_b. sync_wallets ( ) . unwrap ( ) ;
178178
179- assert ! ( node_a. on_chain_balance( ) . unwrap( ) . get_spendable( ) > 90000 ) ;
180- assert_eq ! ( node_b. on_chain_balance( ) . unwrap( ) . get_spendable( ) , 103234 ) ;
179+ assert ! ( node_a. on_chain_balance( ) . unwrap( ) . get_spendable( ) > 50000 ) ;
180+ assert_eq ! ( node_b. on_chain_balance( ) . unwrap( ) . get_spendable( ) , 143234 ) ;
181181
182182 node_a. stop ( ) . unwrap ( ) ;
183183 println ! ( "\n A stopped" ) ;
@@ -216,7 +216,7 @@ fn channel_open_fails_when_funds_insufficient() {
216216 let node_b_addr = format ! ( "{}@{}" , node_b. node_id( ) , node_b. listening_address( ) . unwrap( ) ) ;
217217 assert_eq ! (
218218 Err ( Error :: InsufficientFunds ) ,
219- node_a. connect_open_channel( & node_b_addr, 120000 , true )
219+ node_a. connect_open_channel( & node_b_addr, 120000 , None , true )
220220 ) ;
221221}
222222
0 commit comments