Open GeorgeTsagk opened 4 months ago
[!IMPORTANT]
Review skipped
Auto reviews are limited to specific labels.
Labels to auto review (1)
* llm-reviewPlease check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
This PR adds a special case in the
lnwallet/channel.go
state machine. For custom channels, when a custom wire blob is present we may want to compensate the htlc sats amount from the opposite side, in order to avoid premature channel exhaustion. This is caused because an above dust htlc amount must be always used, so that the htlc can always be materialized on chain in order to maintain the aux leaf data.