forked from gcash/neutrino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headerfs: add new readHeaderRange method to BlockHeaderStore
In this commit, we add a new method readHeaderRange, which allows callers to batch request a set of headers in a contiguous height range. Before this commit, in order to fetch a range of headers, we required the caller to execute a system call for *each* header. During IDB, when we're writing thousands of headers, this quickly becomes very costly. In order to provide an alternative, we add a new method which allows the caller to fetch an series of headers with a *single* system call.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters