-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: process two ranges of missing chunks in stateless job (#10341)
I've tried to make a switch from stateful to stateless jobs, but unfortunately it turned out that the `get_stateless_validation_job` skeleton is not enough. TLDR - I need to process both ranges of missing chunks inside it - between `prev_prev_chunk` and `prev_chunk` and between `prev_chunk` and `chunk`. The first one needed for compatibility with current protocol, where we process missing chunks immediately on receiving block, thus missing chunks are effectively processed before executed chunk. The second one is needed to generate post state root for latest processed block, to make it pre state root for newly processed chunk. However, it will be useful for switching to the "after-range" later, especially implementing a protocol version switch. Nayduck https://nayduck.near.org/#/run/3327 --------- Co-authored-by: Longarithm <[email protected]>
- Loading branch information
1 parent
5c79685
commit 6c4edb2
Showing
2 changed files
with
228 additions
and
119 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
Oops, something went wrong.