Skip to content

Commit 40d2d67

Browse files
committed
Correct initial commitment tx fee affordability checks on open
Previously, we would reject inbound channels if the funder wasn't able to meet our channel reserve on their first commitment transaction only if they also failed to push enough to us for us to not meet their initial channel reserve as well. There's not a lot of reason to care about us meeting their reserve, however - its largely expected that they may not push enough to us in the initial open to meet it, and its not actually our problem if they don't. Further, we used our own fee, instead of the channel's actual fee, to calculate fee affordability of the initial commitment transaction. We resolve both issues here, rewriting the combined affordability check conditionals in inbound channel open handling and adding a fee affordability check for outbound channels as well. The prior code may have allowed a counterparty to start the channel with "no punishment" states - violating the reason for the reserve threshold.
1 parent 3081144 commit 40d2d67

File tree

3 files changed

+51
-29
lines changed

3 files changed

+51
-29
lines changed

0 commit comments

Comments
 (0)