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

Update config defaults and expose them in bindings #124

Merged
merged 4 commits into from
Jun 20, 2023

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Jun 14, 2023

Based on #115.
Closes #120.

We update config defaults to make them a bit more robust.

In particular, we

  • update BDK-related sync constants to use less concurrent request, avoiding potential for spamming the Esplora endpoint
  • increase the sync intervals slightly (30s/80s) and make them non-harmonious to decrease the chance of requests hitting the endpoint at the same time.
  • change the listening_address default to None to have the use make a dedicated choice whether to accept inbound connections or not.
  • expose the Config defaults in UniFFI bindings (Set config defaults in bindings #120)

@tnull tnull added this to the 0.1 milestone Jun 14, 2023
@tnull tnull mentioned this pull request Jun 13, 2023
47 tasks
@tnull tnull force-pushed the 2023-06-update-sync-constants branch from be8331e to f901285 Compare June 14, 2023 13:52
We choose constants that reduce the chance of overlapping syncs past the
initial one.
As we expect LDK Node to be primarily used as a client, we should be
conservative about listening/accepting inbound connections. The user
should make a dedicated choice to do so.
@tnull tnull force-pushed the 2023-06-update-sync-constants branch from f901285 to 4f8703d Compare June 16, 2023 19:00
@tnull
Copy link
Collaborator Author

tnull commented Jun 16, 2023

Rebased after #115 was merged.

@tnull tnull merged commit bbc3ffc into lightningdevkit:main Jun 20, 2023
2 checks passed
This pull request was closed.
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.

Set config defaults in bindings
2 participants