lightningd/options.c: Add option for setting how long to keep trying bitcoin-cli command.#2780
Conversation
bf9cd43 to
5c0b9e5
Compare
cdecker
left a comment
There was a problem hiding this comment.
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.
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 |
Requested in: #2779