@@ -2969,20 +2969,20 @@ static struct amount_sat check_balances(struct peer *peer,
2969
2969
* While we're, here, adjust the output counts by splice amount.
2970
2970
*/
2971
2971
if (!amount_msat_add_sat_s64 (& funding_amount , funding_amount ,
2972
- peer -> splicing -> opener_relative ))
2973
- peer_failed_warn (peer -> pps , & peer -> channel_id ,
2974
- "Unable to add opener funding" );
2972
+ peer -> splicing -> opener_relative ))
2973
+ splice_abort (peer , "Splice initiator did not provide enough"
2974
+ " funding" );
2975
2975
if (!amount_msat_add_sat_s64 (& out [TX_INITIATOR ], out [TX_INITIATOR ],
2976
- peer -> splicing -> opener_relative ))
2976
+ peer -> splicing -> opener_relative ))
2977
2977
peer_failed_warn (peer -> pps , & peer -> channel_id ,
2978
2978
"Unable to add opener funding to out amnt." );
2979
2979
2980
2980
if (!amount_msat_add_sat_s64 (& funding_amount , funding_amount ,
2981
- peer -> splicing -> accepter_relative ))
2982
- peer_failed_warn (peer -> pps , & peer -> channel_id ,
2983
- "Unable to add accepter funding" );
2981
+ peer -> splicing -> accepter_relative ))
2982
+ splice_abort (peer , "Splice accepter did not provide enough"
2983
+ " funding" );
2984
2984
if (!amount_msat_add_sat_s64 (& out [TX_ACCEPTER ], out [TX_ACCEPTER ],
2985
- peer -> splicing -> accepter_relative ))
2985
+ peer -> splicing -> accepter_relative ))
2986
2986
peer_failed_warn (peer -> pps , & peer -> channel_id ,
2987
2987
"Unable to add accepter funding to out amnt." );
2988
2988
0 commit comments