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

CLN API deprecation causes amount issue with swap-outs #195

Open
grubles opened this issue Jun 13, 2023 · 1 comment
Open

CLN API deprecation causes amount issue with swap-outs #195

grubles opened this issue Jun 13, 2023 · 1 comment
Labels
deprecated cln api Related to CLN API deprecations
Milestone

Comments

@grubles
Copy link
Collaborator

grubles commented Jun 13, 2023

CLN at 85992e6e48a6131afee9b24d8b8f99ecd268d73e
PeerSwap at 19aaf19

When initiating a swap-out while running CLN with allow-deprecated-apis=false, the amount check is off by 1000.

$ lightning-cli peerswap-swap-out 140490x1x0 100000000 lbtc
{
   "code": -1,
   "message": "swap amount is 100000000000: need to enable option '--large-channels' to swap amounts larger than 2^32 msat"
}
@grubles
Copy link
Collaborator Author

grubles commented Jun 13, 2023

From the LND side of the channel:

$ ./builds/peerswap/out/pscli swapin --channel_id 154470388586315776 --sat_amt 50000000 --asset lbtc                                                                      
2023/06/13 15:25:56 rpc error: code = Unknown desc = from the CLN peer: swap amount is 50000000000: need to enable option '--large-channels' to swap amounts larger than 2^32 msat

@wtogami wtogami added this to the v1.1 milestone Jul 18, 2023
@grubles grubles added the deprecated cln api Related to CLN API deprecations label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated cln api Related to CLN API deprecations
Projects
None yet
Development

No branches or pull requests

2 participants