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.7k
Add push and get methods for RestartLastVotedForkSlots #33613
Merged
wen-coding
merged 34 commits into
solana-labs:master
from
wen-coding:push_get_restart_last_voted_fork_slots
Nov 16, 2023
Merged
Changes from 17 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
dcccabb
Add push and get methods for RestartLastVotedForkSlots
wen-coding 75018a2
Improve expression format.
wen-coding ad641b1
Remove fill() from RestartLastVotedForkSlots and move into constructor.
wen-coding 0924388
Update ABI signature.
wen-coding ead61eb
Use flate2 compress directly instead of relying on CompressedSlots.
wen-coding c1bf8bf
Make constructor of RestartLastVotedForkSlots return error if necessary.
wen-coding 2b181c7
Use minmax and remove unnecessary code.
wen-coding 513116e
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding 6491d5f
Replace flate2 with run-length encoding in RestartLastVotedForkSlots.
wen-coding d78a00e
Remove accidentally added file.
wen-coding 03056b6
The passed in last_voted_fork don't need to be mutable any more.
wen-coding e788b3e
Switch to different type of run-length encoding.
wen-coding 756d9f2
Fix typo.
wen-coding 7920971
Move constant into RestartLastVotedForkSlots.
wen-coding 73cd8b7
Use BitVec in RawOffsets.
wen-coding 07f3ed2
Remove the unnecessary clone.
wen-coding f4df7f3
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding 6155485
Use iter functions for RLE.
wen-coding 6107deb
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding def82a0
Use take_while instead of loop.
wen-coding 4407db4
Change Run length encoding to iterator implementation.
wen-coding dd8181c
Allow one slot in RestartLastVotedForkSlots.
wen-coding 692f78e
Various simplifications.
wen-coding 9bf13d6
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding eb15284
Fix various errors and use customized error type.
wen-coding f8e2437
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding 5f54d95
Various simplifications.
wen-coding 4a66754
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding 789d3d1
Return error from push_get_restart_last_voted_fork_slots and
wen-coding 1ded7a8
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding be92ca6
Allow 81k slots on RestartLastVotedForkSlots.
wen-coding 3352222
Merge branch 'master' into push_get_restart_last_voted_fork_slots
wen-coding 60e9a3c
Limit MAX_SLOTS to 65535 so we can go back to u16.
wen-coding 99c19f6
Use u16::MAX instead of 65535.
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
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.
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.
update
is pretty ambiguous here.can we name the arg
fork
?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.
Done.