Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnd->lightning open channel failed if amount <57201 satoshi #2473

Open
arowser opened this issue Mar 15, 2019 · 1 comment
Open

lnd->lightning open channel failed if amount <57201 satoshi #2473

arowser opened this issue Mar 15, 2019 · 1 comment

Comments

@arowser
Copy link
Contributor

arowser commented Mar 15, 2019

Issue and Steps to Reproduce

lnd->lightning open channel failed if amount <57201 satoshi, LND show:

[lncli] rpc error: code = Code(189) desc = You gave bad parameters:Our channel reserve 30000 would be below their dust 54600

if fund amount <57201 sat , the lnd->lightningd openchannel will failed, but lightningd->lnd will success.

The reason is when open channel, if local reserve < dust_limit, clightning will set local_reserve = dust_limit, local reserve= (state->funding.satoshis + 99) / 100,
but clightning dust limit is 546, but lnd is 573:
https://github.com/ElementsProject/lightning/blob/master/openingd/openingd.c#L306

It could be reproduced with https://github.com/arowser/lightning-integration/tree/dust_limit

TEST_DEBUG=1 py.test -v test.py  -s -k 'test_lnd_clightning_dust_open_channel[lnd_lightning]'
@arowser
Copy link
Contributor Author

arowser commented Mar 15, 2019

Ref lightningnetwork/lnd#1142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants