-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[feature]: add a default value for timeout_seconds
in SendPaymentV2
routerrpc.SendPaymentRequest
#9282
Comments
@ZZiigguurraatt @ziggie1984 I'd like to work on this issue. |
I am not entirely sure if tests are required for this change since it primarily involves setting a default value for |
Yes, this should be clarified. Something like I wonder if it should be a recommendation to check the status of the payment for pending htlcs to figure out if there is a dangling payment attempt. |
Hi @NishantBansal2003 strictly for future reference... If the issue is already assigned to another contributor, it's a common courtesy to ask for their permission before submitting a pr or taking over the issue. You can just post a comment on the issue showing your intent to submit a pr. |
Thank you for pointing this out. My apologies for not seeking permission in this case. Since the issue was marked as |
I propose that in the
SendPaymentV2
RPC call'srouterrpc.SendPaymentRequest
that we change thetimeout_seconds
to have a default value of 60 seconds. Right now, there is no default, so the RPC call results in an error if that field is not populated. Is there a technical reason thattimeout_seconds
has no default value?Also, the API docs say
timeout_seconds
isHowever, is this really an "upper limit" if a node along the route stalls for a while during the last payment attempt? Seems like it is more like the time in which the last HTCL will be initiated?
The text was updated successfully, but these errors were encountered: