@@ -8871,13 +8871,16 @@ func (lc *LightningChannel) availableCommitmentBalance(view *HtlcView,
8871
8871
ourBalance , futureCommitWeight , feePerKw , buffer ,
8872
8872
)
8873
8873
if err != nil {
8874
- lc .log .Warnf ("Set available amount to 0 because we " +
8875
- "could not pay for the CommitmentFee of the " +
8876
- "new ChannelState: ourBalance is negative " +
8877
- "after applying the fee: ourBalance=%v, " +
8874
+ lc .log .Debugf ("No available local balance after " +
8875
+ "applying the CommitmentFee of the new " +
8876
+ "CommitmentState(%v): ourBalance would drop " +
8877
+ "below the reserve: " +
8878
+ "ourBalance(w/o reserve)=%v, reserve=%v, " +
8878
8879
"current commitFee(w/o additional htlc)=%v, " +
8879
- "feeBuffer=%v (type=%v) local_chan_initiator" ,
8880
- ourBalance , commitFee , bufferAmt , buffer )
8880
+ "feeBuffer=%v (type=%v) " +
8881
+ "local_chan_initiator=%v" , whoseCommitChain ,
8882
+ ourBalance , ourReserve , commitFee , bufferAmt ,
8883
+ buffer , lc .channelState .IsInitiator )
8881
8884
8882
8885
return 0 , commitWeight
8883
8886
}
0 commit comments