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

Banking Stage drop too_old votes#19400

Closed
tao-stones wants to merge 1 commit intosolana-labs:masterfrom
tao-stones:banking_stage_drop_redundant_votes
Closed

Banking Stage drop too_old votes#19400
tao-stones wants to merge 1 commit intosolana-labs:masterfrom
tao-stones:banking_stage_drop_redundant_votes

Conversation

@tao-stones
Copy link
Copy Markdown
Contributor

@tao-stones tao-stones commented Aug 24, 2021

Problem

banking_stage inserts all Vote transactions, includes TooOld votes, into bank. Those redundant votes should be dropped.

Summary of Changes

  1. add check_redundant_votes function to check vote by current bank's vote_state;

  2. banking_stage calls above function after accounts were locked, and before
    calling bank.load_and_execute_transactions, redundant vote transactions
    are marked as TransactionError::ProcessedAlready in result;

Fixes #17877

… vote_state;

2. banking_stage calls above function after accounts were locked, and before
   calling bank.load_and_execute_transactions, redundant vote transactions
   are marked as TransactionError::ProcessedAlready in result;
@tao-stones
Copy link
Copy Markdown
Contributor Author

Create this PR from #19152 to check why CI fails on Stable test, which succeeds locally.

@tao-stones
Copy link
Copy Markdown
Contributor Author

this is a duplicate of #19152

@stale
Copy link
Copy Markdown

stale Bot commented Jan 9, 2022

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 Jan 9, 2022
@mvines mvines closed this Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale [bot only] Added to stale content; results in auto-close after a week.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cost model to handle redundant votes

3 participants