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
Wen restart aggregate last voted fork slots #33892
Merged
wen-coding
merged 61 commits into
solana-labs:master
from
wen-coding:wen_restart_aggregate_last_voted_fork_slots
Mar 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
47f8891
Push and aggregate RestartLastVotedForkSlots.
wen-coding a8d0c08
Fix API and lint errors.
wen-coding f7b8232
Reduce clutter.
wen-coding f5f71b4
Put my own LastVotedForkSlots into the aggregate.
wen-coding 630cc70
Merge branch 'solana-labs:master' into wen_restart_aggregate_last_vot…
wen-coding ce32c03
Write LastVotedForkSlots aggregate progress into local file.
wen-coding b90185d
Fix typo and name constants.
wen-coding 3c819f0
Fix flaky test.
wen-coding e21efe3
Clarify the comments.
wen-coding b24b8db
- Use constant for wait_for_supermajority
wen-coding a2204f3
Fix delay_after_first_shred and remove loop in wen_restart.
wen-coding 0c1ef0f
Read wen_restart slots inside the loop instead.
wen-coding b9324c8
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 122314d
Discard turbine shreds while in wen_restart in windows insert rather …
wen-coding e1252a4
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 31ca285
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding c3ab972
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 8fc2327
Use the new Gossip API.
wen-coding 229f447
Rename slots_to_repair_for_wen_restart and a few others.
wen-coding bc1b4b5
Rename a few more and list all states.
wen-coding 8743b5c
Pipe exit down to aggregate loop so we can exit early.
wen-coding 4ebbde8
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 0d82a7c
Fix import of RestartLastVotedForkSlots.
wen-coding 5e0a5b1
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding ec21ec1
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding c172c26
Use the new method to generate test bank.
wen-coding 08de626
Make linter happy.
wen-coding ea4d800
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 4f91be7
Use new bank constructor for tests.
wen-coding de89a4e
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 1e98324
Fix a bad merge.
wen-coding 777523f
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 1e478e8
- add new const for wen_restart
wen-coding b0980e4
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding f4acd69
Add initialize and put the main logic into a loop.
wen-coding bb471c1
Merge branch 'wen_restart_aggregate_last_voted_fork_slots' of https:/…
wen-coding c45a29b
Change aggregate interface and other fixes.
wen-coding 167b790
Add failure tests and tests for state transition.
wen-coding e0a070f
Add more tests and add ability to recover from written records in
wen-coding 8be5cd0
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding ddd144e
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 1cfc510
Various name changes.
wen-coding 5b10c6e
We don't really care what type of error is returned.
wen-coding 0620aaf
Wait on expected progress message in proto file instead of sleep.
wen-coding 1ceda56
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 93abe45
Code reorganization and cleanup.
wen-coding cb1788e
Make linter happy.
wen-coding 72a732e
Add WenRestartError.
wen-coding 4c920cb
Split WenRestartErrors into separate erros per state.
wen-coding bf71c9b
Revert "Split WenRestartErrors into separate erros per state."
wen-coding 056aef7
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 645452f
Use individual functions when testing for failures.
wen-coding f46e62a
Move initialization errors into initialize().
wen-coding e3d0194
Use anyhow instead of thiserror to generate backtrace for error.
wen-coding ffbb20c
Add missing Cargo.lock.
wen-coding 3b50964
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 59fd5ff
Add error log when last_vote is missing in the tower storage.
wen-coding e7c320c
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 9ccf5ca
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding 021dbe9
Change error log info.
wen-coding 40c0fb6
Change test to match exact error.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -317,6 +317,12 @@ pub(crate) fn initialize( | |
.take(RestartLastVotedForkSlots::MAX_SLOTS) | ||
.collect(); | ||
} else { | ||
error!(" | ||
Cannot find last voted slot in the tower storage, it either means that this node has never \ | ||
voted or the tower storage is corrupted. Unfotunately, since WenRestart is a consensus protocol \ | ||
depending on each participant to send their last voted fork slots, your validator cannot participate.\ | ||
Please wait in the discord channel for the result of WenRestart, then generate a snapshot and use \ | ||
--wait-for-supermajority to restart the validator."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
return Err(WenRestartError::MissingLastVotedForkSlots.into()); | ||
} | ||
} else { | ||
|
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.
Nit: Please check discord for the conclusion of the WenRestart protocol, then generate a snapshot and use...
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.