Skip to content

Conversation

@yellowred
Copy link
Contributor

For a node with large number of channels and long history of inactivity it becomes slow to synchronize the state from the blockchain. A simple optimization is to not calculate a diff for an old block hash for which the diff was calculated before. For a node with 200 channels this will lead to a drop in the number of diffs needed from 200 to just a few.

For a node with large number of channels and long history of inactivity it
becomes slow to synchronize the state from the blockchain. A simple optimization
is to not calculate a diff for an old block hash for which the diff was
calculated before. For a node with 200 channels this will lead to a drop in the
number of diffs needed from 200 to just a few.
@yellowred yellowred marked this pull request as draft October 2, 2024 22:25
@yellowred
Copy link
Contributor Author

Unfortunately this optimization does not account for forks.

@yellowred yellowred closed this Oct 2, 2024
@yellowred yellowred deleted the yellowred/optimize_listeners_sync branch October 2, 2024 23:10
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.

1 participant