This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add RestartLastVotedForkSlots for wen_restart. #33239
Merged
wen-coding
merged 20 commits into
solana-labs:master
from
wen-coding:wen_restart_gossip_change
Oct 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ce81bbc
Add RestartLastVotedForkSlots and RestartHeaviestFork for wen_restart.
wen-coding 0edf40e
Fix linter errors.
wen-coding 1ec981b
Merge branch 'master' into wen_restart_gossip_change
wen-coding a3749b2
Revert RestartHeaviestFork, it will be added in another PR.
wen-coding 79bedf8
Merge branch 'master' into wen_restart_gossip_change
wen-coding 719534d
Merge branch 'master' into wen_restart_gossip_change
wen-coding 25e0117
Update frozen abi message.
wen-coding 1fcc81d
Fix wrong number in test generation, change to pub(crate) to limit sc…
wen-coding b7077a7
Separate push_epoch_slots and push_restart_last_voted_fork_slots.
wen-coding 354673a
Add RestartLastVotedForkSlots data structure.
wen-coding 0028f64
Remove unused parts to make PR smaller.
wen-coding 46d2054
Remove unused clone.
wen-coding cc11d42
Use CompressedSlotsVec to share code between EpochSlots and RestartLa…
wen-coding b0cead0
Merge branch 'master' into wen_restart_gossip_change
wen-coding 5b7a724
Add total_messages to show how many messages are there.
wen-coding 4821d8a
Merge branch 'master' into wen_restart_gossip_change
wen-coding ae8d01d
Reduce RestartLastVotedForkSlots to one packet (16k slots).
wen-coding 1ee2699
Replace last_vote_slot with shred_version, revert CompressedSlotsVec.
wen-coding 78a9ded
Merge branch 'master' into wen_restart_gossip_change
wen-coding 866228b
Merge branch 'master' into wen_restart_gossip_change
wen-coding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert RestartHeaviestFork, it will be added in another PR.
- Loading branch information
commit a3749b2d21073cee6585fa88b728273dec5cb135
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these values are only going to matter during restart, then we don't need the overhead of this index.
You can just use this function:
https://github.com/solana-labs/solana/blob/6db57f81d/gossip/src/crds.rs#L380-L390
and filter on
RestartLastVotedForkSlots
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair, removed now.