Detect vote hash mismatch even at run-sanity.sh#12690
Detect vote hash mismatch even at run-sanity.sh#12690ryoqun wants to merge 6 commits intosolana-labs:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12690 +/- ##
=======================================
Coverage 82.0% 82.1%
=======================================
Files 378 378
Lines 90905 90905
=======================================
+ Hits 74632 74637 +5
+ Misses 16273 16268 -5 |
|
Would it better to have a flag to panic on this case? |
Flag would be cool. Plumbing that flag from |
That's true. Plumbing would be a pain. Also security reviews don't like these kinds of flags to turn off checks. On the other hand, these kind of log checks are kind of brittle and have a habit of being disabled without anyone noticing. Also seems like more of a pain to enable in more test situations. Generally we would always want to panic in this situation unless it's a specifically malicious test case to insert duplicate conflicting blocks into the system. |
Yeah, I don't like the current state of this. After some thought, I think I'll just add a validator kill-switch if the validator's voted slot hash is mismatched to the supermajority rest of cluster. To begin with, as bank hashes are chained, there is no point to continue running validator once mismatched is started. This will be like combination of #11927 and #11727, which is done at the snapshot interval. Also, this will make #12697 like this more visible when testing/benchmarking. |
2df0027 to
0e6359b
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
|
@ryoqun is there something wrong with this? Can we prioritize enabling this checking? |
Is the builtins part of this change needed for the vote hash mismatch? |
0e6359b to
21d3059
Compare
@sakridge oops, sorry. these was rebase leftover; fixed. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
|
This stale pull request has been automatically closed. Thank you for your contributions. |
Problem
#12670 (comment)
Summary of Changes
note that this test expected to fail.