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

Add --bitcoin-rpcclienttimeout CLI parameter #7095

Conversation

s373nZ
Copy link
Contributor

@s373nZ s373nZ commented Feb 20, 2024

This is a first pass at #2817. It adds a --bitcoin-rpcclienttimeout parameter to bcli. It seems those parameters are automatically pulled in as lightningd parameters as well. Instead of setting the default value at 900 per the bitcoind, we set it to match the retry_timeout and then choose the maximum value from arguments gathered by the user.

Don't have much experience in C, but open to learn and contribute to this project where I can.

@s373nZ s373nZ force-pushed the 2817-bitcoin-rpcclienttimeout-parameter branch from 56affbf to 7b54c36 Compare February 21, 2024 11:04
@cdecker cdecker linked an issue Feb 21, 2024 that may be closed by this pull request
@cdecker
Copy link
Member

cdecker commented Feb 21, 2024

Very nice change, thanks for contributing @s373nZ. It just missed the release window for v24.02, but I'll mark it for inclusion in v25.05 👍

@s373nZ
Copy link
Contributor Author

s373nZ commented Apr 24, 2024

@cdecker Gentle reminder -- is this still slated for inclusion in v25.05?

@cdecker cdecker added this to the v24.05 milestone Apr 24, 2024
@cdecker
Copy link
Member

cdecker commented Apr 24, 2024

@cdecker Gentle reminder -- is this still slated for inclusion in v25.05?

@endothermicdev is the release captain for this release so it'll be his decision, buy I'm happy to shepherd this one through if it qualifies (marked for inclusion and I'm volunteering to rebase and/or fix breakage if conflicts arise).

@endothermicdev
Copy link
Collaborator

Looks good. Nit: rather than passing through the bitcoind sematics, could the CLN option be named something similar to the existing bitcoin-retry-timeout? Maybe just bitcoin-rpc-timeout? Sorry to bikeshed.

@s373nZ
Copy link
Contributor Author

s373nZ commented May 13, 2024

@endothermicdev I noticed that the rpc* parameters to bitcoind seemed to follow a slightly different naming convention:

  • bitcoin-rpcuser
  • bitcoin-rpcpassword
  • bitcoin-rpcport
  • bitcoin-rpcconnect

and tried to follow in line with those, omitting the hyphenation -- a best guess. I'm happy to change the parameter name to bitcoin-rpc-timeout if you prefer, though.

@endothermicdev endothermicdev merged commit ca4710e into ElementsProject:master May 13, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --bitcoin-rpcclienttimeout CLI parameter
3 participants