-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't query current/previous VDF session directly. Add to queue.
When the node is unable to validate a block due to a gap in the vdf steps it triggers a request to query the current and previous vdf sessions from its vdf peers. This operation can be slow. Previously the node would keep queueing up these requests and it could overrun the process. Now we set a flag and the session queries are handled durnig the next `pull` iteration. This flag can be set dozens of times beween pull iterations and it will still only trigger a single set of request.
- Loading branch information
1 parent
bb4d23d
commit 74a3670
Showing
1 changed file
with
53 additions
and
41 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