Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send and Aggregate RestartHeaviestFork. #699

Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a91e6c2
Send and Aggregate RestartHeaviestFork.
wen-coding Apr 9, 2024
0eb60a3
total_active_stake in my_heaviest_fork should always be the sum of the
wen-coding Apr 10, 2024
c953564
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 10, 2024
2e9650c
A few name changes and other small fixes.
wen-coding Apr 15, 2024
bb679b0
Move active_peers update to after stakes_map is updated.
wen-coding Apr 15, 2024
47b6a0d
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 15, 2024
8a2d0c8
Only send out RestartHeaviestFork and write snapshots every 30 minutes.
wen-coding Apr 15, 2024
2814ab6
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 15, 2024
3167a48
Proceed if 5% of the nodes disagree and log the disagreement if the
wen-coding Apr 17, 2024
54b47ee
Make linter happy.
wen-coding Apr 17, 2024
acd7341
Make linter happy.
wen-coding Apr 17, 2024
645aafa
Add successful case.
wen-coding Apr 17, 2024
bf265a6
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 17, 2024
15e6824
Add a few constants and methods.
wen-coding Apr 22, 2024
f3ac6c9
Account for 5% non_conforming when calculating exit threshold.
wen-coding Apr 22, 2024
bbe83fa
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 22, 2024
f9f0c70
Adding a few more logs.
wen-coding Apr 22, 2024
f7f078d
Fix tests to use 75% when aggregating HeaviestFork and a few bugs.
wen-coding Apr 22, 2024
aff9399
Reuse adjusted_threhold_percent.
wen-coding Apr 23, 2024
601e06c
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 23, 2024
a45edb0
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 25, 2024
e10467f
Merge branch 'master' into wen_restart_push_and_aggregate_heaviest_fork
wen-coding Apr 26, 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
18 changes: 16 additions & 2 deletions wen-restart/proto/wen_restart.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,29 @@ message LastVotedForkSlotsAggregateFinal {
uint64 total_active_stake = 2;
}

message HeaviestFork {
message HeaviestForkRecord {
uint64 slot = 1;
string bankhash = 2;
uint64 total_active_stake = 3;
uint32 shred_version = 4;
uint64 wallclock = 5;
}

message HeaviestForkAggregateFinal {
uint64 total_active_stake = 1;
uint64 total_active_stake_seen_supermajority = 2;
uint64 total_active_stake_agreed_with_me = 3;
}

message HeaviestForkAggregateRecord {
map<string, HeaviestForkRecord> received = 1;
optional HeaviestForkAggregateFinal final_result = 2;
}

message WenRestartProgress {
State state = 1;
optional LastVotedForkSlotsRecord my_last_voted_fork_slots = 2;
optional LastVotedForkSlotsAggregateRecord last_voted_fork_slots_aggregate = 3;
optional HeaviestFork my_heaviest_fork = 4;
optional HeaviestForkRecord my_heaviest_fork = 4;
optional HeaviestForkAggregateRecord heaviest_fork_aggregate = 5;
}
Loading
Loading