@@ -399,6 +399,8 @@ pub struct ChannelDetails {
399399 /// an upper-bound. This is intended for use when routing, allowing us to ensure we pick a
400400 /// route which is valid.
401401 pub next_outbound_htlc_minimum_msat : u64 ,
402+ /// The maximum value of the next splice out from our channel balance.
403+ pub next_splice_out_maximum_sat : u64 ,
402404 /// The available inbound capacity for the remote peer to send HTLCs to us. This does not
403405 /// include any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
404406 /// available for inclusion in new inbound HTLCs).
@@ -583,6 +585,7 @@ impl ChannelDetails {
583585 outbound_capacity_msat : balance. outbound_capacity_msat ,
584586 next_outbound_htlc_limit_msat : balance. next_outbound_htlc_limit_msat ,
585587 next_outbound_htlc_minimum_msat : balance. next_outbound_htlc_minimum_msat ,
588+ next_splice_out_maximum_sat : balance. next_splice_out_maximum_sat ,
586589 user_channel_id : context. get_user_id ( ) ,
587590 confirmations_required : channel. minimum_depth ( ) ,
588591 confirmations : Some ( funding. get_funding_tx_confirmations ( best_block_height) ) ,
@@ -622,6 +625,7 @@ impl_writeable_tlv_based!(ChannelDetails, {
622625 ( 20 , inbound_capacity_msat, required) ,
623626 ( 21 , next_outbound_htlc_minimum_msat, ( default_value, 0 ) ) ,
624627 ( 22 , confirmations_required, option) ,
628+ ( 23 , next_splice_out_maximum_sat, ( default_value, u64 :: from( outbound_capacity_msat. 0 . unwrap( ) ) / 1000 ) ) ,
625629 ( 24 , force_close_spend_delay, option) ,
626630 ( 26 , is_outbound, required) ,
627631 ( 28 , is_channel_ready, required) ,
@@ -726,6 +730,7 @@ mod tests {
726730 outbound_capacity_msat : 24_300 ,
727731 next_outbound_htlc_limit_msat : 20_000 ,
728732 next_outbound_htlc_minimum_msat : 132 ,
733+ next_splice_out_maximum_sat : 20 ,
729734 inbound_capacity_msat : 42 ,
730735 unspendable_punishment_reserve : Some ( 8273 ) ,
731736 confirmations_required : Some ( 5 ) ,
0 commit comments