Closed danielabrozzoni closed 4 months ago
Fix a bug where you couldn't open a channel pushing 0 sats
That's not a bug and the way you fixed it:
- if payload.push_msat < DUST_LIMIT_MSAT {
+ if payload.push_msat != 0 && payload.push_msat < DUST_LIMIT_MSAT {
is incorrect.
The push amount check should be performed only when opening RGB channels, for vanilla channels I don't think we need to deny push amounts between 1 and DUST_LIMIT_MSAT. If you think I'm wrong please provide an explanation.
Thanks, I updated and rebased
In my last push:
Some tests are sometimes failing due to https://github.com/lightningdevkit/rust-lightning/issues/2479
closing this since feature has been rebased, fixed and merged upstream. thank you