Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Wen restart aggregate last voted fork slots #33892

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 Oct 25, 2023
a8d0c08
Fix API and lint errors.
wen-coding Oct 26, 2023
f7b8232
Reduce clutter.
wen-coding Oct 26, 2023
f5f71b4
Put my own LastVotedForkSlots into the aggregate.
wen-coding Oct 26, 2023
630cc70
Merge branch 'solana-labs:master' into wen_restart_aggregate_last_vot…
wen-coding Oct 27, 2023
ce32c03
Write LastVotedForkSlots aggregate progress into local file.
wen-coding Oct 27, 2023
b90185d
Fix typo and name constants.
wen-coding Oct 27, 2023
3c819f0
Fix flaky test.
wen-coding Oct 27, 2023
e21efe3
Clarify the comments.
wen-coding Oct 27, 2023
b24b8db
- Use constant for wait_for_supermajority
wen-coding Nov 8, 2023
a2204f3
Fix delay_after_first_shred and remove loop in wen_restart.
wen-coding Nov 9, 2023
0c1ef0f
Read wen_restart slots inside the loop instead.
wen-coding Nov 9, 2023
b9324c8
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 11, 2023
122314d
Discard turbine shreds while in wen_restart in windows insert rather …
wen-coding Nov 12, 2023
e1252a4
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 14, 2023
31ca285
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 15, 2023
c3ab972
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 16, 2023
8fc2327
Use the new Gossip API.
wen-coding Nov 16, 2023
229f447
Rename slots_to_repair_for_wen_restart and a few others.
wen-coding Nov 16, 2023
bc1b4b5
Rename a few more and list all states.
wen-coding Nov 17, 2023
8743b5c
Pipe exit down to aggregate loop so we can exit early.
wen-coding Nov 17, 2023
4ebbde8
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 17, 2023
0d82a7c
Fix import of RestartLastVotedForkSlots.
wen-coding Nov 17, 2023
5e0a5b1
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Nov 17, 2023
ec21ec1
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Dec 12, 2023
c172c26
Use the new method to generate test bank.
wen-coding Dec 12, 2023
08de626
Make linter happy.
wen-coding Jan 4, 2024
ea4d800
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 4, 2024
4f91be7
Use new bank constructor for tests.
wen-coding Jan 4, 2024
de89a4e
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 20, 2024
1e98324
Fix a bad merge.
wen-coding Jan 20, 2024
777523f
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 21, 2024
1e478e8
- add new const for wen_restart
wen-coding Jan 23, 2024
b0980e4
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 23, 2024
f4acd69
Add initialize and put the main logic into a loop.
wen-coding Jan 23, 2024
bb471c1
Merge branch 'wen_restart_aggregate_last_voted_fork_slots' of https:/…
wen-coding Jan 23, 2024
c45a29b
Change aggregate interface and other fixes.
wen-coding Jan 24, 2024
167b790
Add failure tests and tests for state transition.
wen-coding Jan 24, 2024
e0a070f
Add more tests and add ability to recover from written records in
wen-coding Jan 27, 2024
8be5cd0
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 27, 2024
ddd144e
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 29, 2024
1cfc510
Various name changes.
wen-coding Jan 31, 2024
5b10c6e
We don't really care what type of error is returned.
wen-coding Jan 31, 2024
0620aaf
Wait on expected progress message in proto file instead of sleep.
wen-coding Jan 31, 2024
1ceda56
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Jan 31, 2024
93abe45
Code reorganization and cleanup.
wen-coding Feb 5, 2024
cb1788e
Make linter happy.
wen-coding Feb 5, 2024
72a732e
Add WenRestartError.
wen-coding Feb 5, 2024
4c920cb
Split WenRestartErrors into separate erros per state.
wen-coding Feb 7, 2024
bf71c9b
Revert "Split WenRestartErrors into separate erros per state."
wen-coding Feb 9, 2024
056aef7
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Feb 9, 2024
645452f
Use individual functions when testing for failures.
wen-coding Feb 10, 2024
f46e62a
Move initialization errors into initialize().
wen-coding Feb 28, 2024
e3d0194
Use anyhow instead of thiserror to generate backtrace for error.
wen-coding Feb 28, 2024
ffbb20c
Add missing Cargo.lock.
wen-coding Feb 29, 2024
3b50964
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Feb 29, 2024
59fd5ff
Add error log when last_vote is missing in the tower storage.
wen-coding Feb 29, 2024
e7c320c
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Feb 29, 2024
9ccf5ca
Merge branch 'master' into wen_restart_aggregate_last_voted_fork_slots
wen-coding Mar 1, 2024
021dbe9
Change error log info.
wen-coding Mar 1, 2024
40c0fb6
Change test to match exact error.
wen-coding Mar 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions wen-restart/src/wen_restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Copy link
Contributor

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

--wait-for-supermajority to restart the validator.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfotunately->Unfortunately

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

return Err(WenRestartError::MissingLastVotedForkSlots.into());
}
} else {
Expand Down
Loading