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

Generate votes only if the proposed bank is not censoring the validator#6744

Closed
aeyakovenko wants to merge 4 commits intosolana-labs:masterfrom
aeyakovenko:guard_against_censorship
Closed

Generate votes only if the proposed bank is not censoring the validator#6744
aeyakovenko wants to merge 4 commits intosolana-labs:masterfrom
aeyakovenko:guard_against_censorship

Conversation

@aeyakovenko
Copy link
Copy Markdown
Member

Problem

Validators may continue voting even though the network is dropping the votes.

Summary of Changes

If the delta between expected vote state and current vote state > THRESHOLD, consensus stops voting and lets some votes expire.

Fixes #6727

sagar-solana
sagar-solana previously approved these changes Nov 5, 2019
Comment thread core/src/replay_stage.rs
"Vote dropped for bank {}, bank censorship failure!!!",
bank.slot()
);
inc_new_counter_info!("replay_stage-votable_bank_censorship_failure", 1);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@sagar-solana @carllin

how do I plum the counter into the dashboard these days?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hehe it's kind of a PIA. Usually you create the dashboard you want in Grafana, then copy the JSON model into testnet-monitor.json

Comment thread core/src/consensus.rs
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 6, 2019

Codecov Report

Merging #6744 into master will decrease coverage by 6.4%.
The diff coverage is 45.7%.

@@           Coverage Diff            @@
##           master   #6744     +/-   ##
========================================
- Coverage    67.6%   61.2%   -6.5%     
========================================
  Files         219     219             
  Lines       48910   54142   +5232     
========================================
+ Hits        33106   33138     +32     
- Misses      15804   21004   +5200

@mergify mergify Bot dismissed sagar-solana’s stale review November 6, 2019 17:30

Pull request has been modified.

@aeyakovenko aeyakovenko force-pushed the guard_against_censorship branch from b34f256 to 02e5fba Compare November 6, 2019 22:49
@mvines mvines added the v0.20 label Nov 6, 2019
@aeyakovenko aeyakovenko force-pushed the guard_against_censorship branch from 02e5fba to e765a4d Compare November 7, 2019 18:46
@aeyakovenko aeyakovenko added the automerge Merge this Pull Request automatically once CI passes label Nov 7, 2019
@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Nov 7, 2019
@solana-grimes
Copy link
Copy Markdown
Contributor

💔 Unable to automerge due to CI failure

@carllin
Copy link
Copy Markdown
Contributor

carllin commented Nov 7, 2019

@aeyakovenko, the local cluster catchup tests won't pass unless the validators playing catch up set roots (issue we discussed yesterday).

@aeyakovenko
Copy link
Copy Markdown
Member Author

@carllin want to take this over?

@aeyakovenko
Copy link
Copy Markdown
Member Author

@mvines i don’t think we need this for 0.20

@stale
Copy link
Copy Markdown

stale Bot commented Dec 8, 2019

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 8, 2019
@mvines
Copy link
Copy Markdown
Contributor

mvines commented Dec 8, 2019

@carllin - can you either rebase and help get this PR moving again, or just close it if obsolete.

@stale stale Bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 8, 2019
@stale
Copy link
Copy Markdown

stale Bot commented Dec 17, 2019

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.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 17, 2019
@stale
Copy link
Copy Markdown

stale Bot commented Dec 24, 2019

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale Bot closed this Dec 24, 2019
@mvines mvines reopened this Jan 9, 2020
@stale stale Bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Jan 9, 2020
@garious
Copy link
Copy Markdown
Contributor

garious commented Jan 9, 2020

@carllin, what's going on with this PR?

@carllin
Copy link
Copy Markdown
Contributor

carllin commented Jan 10, 2020

On hold pending design of how to update root without voting so that validators catching up from a snapshot/reboot can update roots even while votes aren't landing

@mvines
Copy link
Copy Markdown
Contributor

mvines commented Jan 10, 2020

Ok let's close this PR for now. Stale bot will again anyway, and there's a tracking issue so we won't forget about it

@mvines mvines closed this Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validators may continue voting even if the network is censoring the validator

6 participants