Skip to content

Conversation

ninegua
Copy link
Member

@ninegua ninegua commented Sep 17, 2025

Implement a hybrid header cache that would persist anchor header and its ancestors to disk.
This leads to a simpler on-disk cache implementation, since it only has to persist a single chain of headers.
The downside is that headers since the anchor point would be lost if the adapter is restarted, in which case it would sync more headers in order to catch up.

@github-actions github-actions bot added the feat label Sep 17, 2025
Copy link
Member

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @ninegua for this implementation! I think this is the way to go, much simpler than #6783

Base automatically changed from paulliu/improve-btc-adapter-async to master September 17, 2025 19:03
Copy link
Contributor

@mducroux mducroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ninegua! LGTM

@ninegua ninegua marked this pull request as ready for review September 18, 2025 09:10
@ninegua ninegua requested review from a team as code owners September 18, 2025 09:10
@ninegua ninegua added this pull request to the merge queue Sep 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2025
@ninegua ninegua added this pull request to the merge queue Sep 19, 2025
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2025
Implement a hybrid header cache that would persist anchor header and its
ancestors to disk.
This leads to a simpler on-disk cache implementation, since it only has
to persist a single chain of headers.
The downside is that headers since the anchor point would be lost if the
adapter is restarted, in which case it would sync more headers in order
to catch up.

---------

Co-authored-by: mducroux <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2025
@ninegua ninegua added this pull request to the merge queue Sep 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2025
@ninegua ninegua added this pull request to the merge queue Sep 19, 2025
Merged via the queue into master with commit 17db424 Sep 19, 2025
28 checks passed
@ninegua ninegua deleted the paulliu/hybrid-adapter-cache branch September 19, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants