forked from near/nearcore
-
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.
fix: add epoch_id to the key identifying chunk state witness (near#11309
) Currently both partial witness tracker and orphan witness pool use `(height_created, shard_id)` pair as LRU cache key when tracking received state witnesses. This is not entirely correct: different chunk producers can produce a chunk for a given `(height_created, shard_id)` in different epochs. For example that could happen with a fork on epoch boundary when some validators keep producing chunks for the old epoch while other have already transitioned to the new one. This PR introduces new struct `ChunkProductionKey` to be used as a key for tracking chunk state witnesses.
- Loading branch information
Showing
3 changed files
with
47 additions
and
20 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
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
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