-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
PaychGet
has poor usability
#2295
Comments
The UX is definitely a little confusing here. We're actually changing this so that the last parameter is called
We want the total amount reserved in the channel to be 12 FIL (enough for both deals). I think it may make most sense to
Do we currently have a use case for point 2 above? |
I'm not sure what you'd change the name to. I definitely think there's a demand for use case #2. |
I found this confusing at first too. Maybe +1 on |
#3448 provides the ability to find out how much available funds there are for a given from / to combination |
Hi @raulk This issue has not been updated in some time. Should we close it or keep it open? |
I don't have the bandwidth to verify if the concerns are resolved. @TippyFlitsUK is this something you can test yourself and see if the UX is more coherent now? |
Leave it to me @raulk . Many thanks for your confirmation!! |
Description
PaychGet
has poor usability. It either gets or creates the channel. The last parameter is calledensureFunds
, which makes me think it’ll do an “upsert” ensuring that at least that much funds are available.What it in fact does is:
ensureFunds
.ensureFunds
to it.This is poor UX because it creates a catch-22 situation.
Say I know I want a channel between A and B with N funds. I know my balance, but I don’t know if the payment channel exists beforehand, and the very method that lets me query that will actually create the channel for me. The only deterministic way to use this is by setting
ensureFunds=0
, which defeats the purpose of this field altogether.Possible solution
The ideal solution is to make this method behave like advertised (ensuring that N funds exists in the channel), but there may be timing conditions with messages appearing on chain, yada-yada-yada.
The text was updated successfully, but these errors were encountered: