-
Notifications
You must be signed in to change notification settings - Fork 914
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
lightningd/options.c: Add option for setting how long to keep trying bitcoin-cli command. #2780
Conversation
bf9cd43
to
5c0b9e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a bit more work, since it now crashes quite a few tests and I have a minor name change proposal.
We could also add --bitcoin-rpcclienttimeout
that passes through to bitcoin-cli
. That was requested in #2778. It doesn't make sense that we are strict about the 1 minute failure timeout, but happily sit there waiting for 15 minutes when the backend hangs 😃
5c0b9e5
to
5167f35
Compare
…bitcoin-cli command.
5167f35
to
67997a2
Compare
PING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, but I'd like to see us also hand that argument through to '-rpcclienttimeout' as well, as @cdecker points out. That can obv be a separate commit.
Should we consider the time that has already passed, then subtract that from the configured value, before passing to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 67997a2
Requested in: #2779