@@ -307,6 +307,9 @@ pub(super) struct Channel {
307
307
pub ( super ) our_dust_limit_satoshis : u64 ,
308
308
#[ cfg( not( test) ) ]
309
309
our_dust_limit_satoshis : u64 ,
310
+ #[ cfg( test) ]
311
+ pub ( super ) their_max_htlc_value_in_flight_msat : u64 ,
312
+ #[ cfg( not( test) ) ]
310
313
their_max_htlc_value_in_flight_msat : u64 ,
311
314
//get_our_max_htlc_value_in_flight_msat(): u64,
312
315
/// minimum channel reserve for **self** to maintain - set by them.
@@ -316,6 +319,9 @@ pub(super) struct Channel {
316
319
our_htlc_minimum_msat : u64 ,
317
320
their_to_self_delay : u16 ,
318
321
//implied by BREAKDOWN_TIMEOUT: our_to_self_delay: u16,
322
+ #[ cfg( test) ]
323
+ pub their_max_accepted_htlcs : u16 ,
324
+ #[ cfg( not( test) ) ]
319
325
their_max_accepted_htlcs : u16 ,
320
326
//implied by OUR_MAX_HTLCS: our_max_accepted_htlcs: u16,
321
327
minimum_depth : u32 ,
@@ -337,7 +343,7 @@ pub(super) struct Channel {
337
343
logger : Arc < Logger > ,
338
344
}
339
345
340
- const OUR_MAX_HTLCS : u16 = 50 ; //TODO
346
+ pub const OUR_MAX_HTLCS : u16 = 50 ; //TODO
341
347
/// Confirmation count threshold at which we close a channel. Ideally we'd keep the channel around
342
348
/// on ice until the funding transaction gets more confirmations, but the LN protocol doesn't
343
349
/// really allow for this, so instead we're stuck closing it out at that point.
@@ -1597,7 +1603,6 @@ impl Channel {
1597
1603
cltv_expiry : msg. cltv_expiry ,
1598
1604
state : InboundHTLCState :: RemoteAnnounced ( pending_forward_state) ,
1599
1605
} ) ;
1600
-
1601
1606
Ok ( ( ) )
1602
1607
}
1603
1608
0 commit comments