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 race condition in ChunkEndorsementTracker (near#11452)
Fixes: near#11445 In the new version all operations are done by `ChunkEndorsementTrackerInner` which has `&mut self` on all methods, which prevents most races. Apart from that when adding a pending endorsement we check whether the header for this chunk has already been seen and if so we treat this endorsement as non-pending.
- Loading branch information
1 parent
44cb356
commit 041c32c
Showing
1 changed file
with
104 additions
and
55 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