-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Find peers that can provide state headers (#10054)
### The problem: If a node is configured as a chunk-only producer (technically, if it doesn't have `tracked_shards = [0]` in `config.json`), then it can't provide state headers or state parts to other nodes. ### The root cause: The nodes use archaic logic to set `tracked_shards` in `Handshake`. That logic sets `tracked_shard` to either `[]` or `[0,1,2,3]`. ### Solution: Ask a random peer for state sync header without taking their `tracked_shards` into account.
- Loading branch information
Showing
4 changed files
with
65 additions
and
50 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
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