Skip to content

Update config defaults and expose them in bindings - #124

Merged
tnull merged 4 commits into
lightningdevkit:mainfrom
tnull:2023-06-update-sync-constants
Jun 20, 2023
Merged

Update config defaults and expose them in bindings#124
tnull merged 4 commits into
lightningdevkit:mainfrom
tnull:2023-06-update-sync-constants

Conversation

@tnull

@tnulltnull commented Jun 14, 2023

Copy link
Copy Markdown
Collaborator

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)

@tnulltnull added this to the 0.1 milestone Jun 14, 2023
@tnulltnull mentioned this pull request Jun 13, 2023
47 tasks
@tnull
tnullforce-pushed the 2023-06-update-sync-constants branch from be8331e to f901285CompareJune 14, 2023 13:52
tnull added 4 commits June 16, 2023 21:00
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
tnullforce-pushed the 2023-06-update-sync-constants branch from f901285 to 4f8703dCompareJune 16, 2023 19:00
@tnull

Copy link
Copy Markdown
CollaboratorAuthor

Rebased after #115 was merged.

@tnull
tnull merged commit bbc3ffc into lightningdevkit:mainJun 20, 2023
Sign up for freeto 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

@tnull@jkczyz