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

Filter out all unprocessed transactions before forwarding them #4266

Merged
merged 2 commits into from
May 13, 2019

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 13, 2019

Problem

Transactions with expired blockhash are getting forwarded.

Summary of Changes

The current code only filters out the batch of transactions that were being processed while the leader slot finished. All other transactions are getting blindly forwarded to the next leader node. This change deserializes all of the accumulated transactions in the node, and filters them before forwarding them.

This still leaves out the following scenario:
The client sends a transaction to a node which is not the leader. The node takes some time to process it thru its fetch/sigverify stage. By the time it reaches banking stage, it's expired (chances of this happening is very low). The node doesn't have a bank in banking stage, so it blindly forwards it to the next leader.

@codecov
Copy link

codecov bot commented May 13, 2019

Codecov Report

Merging #4266 into master will decrease coverage by 1%.
The diff coverage is 32.9%.

@@           Coverage Diff            @@
##           master   #4266     +/-   ##
========================================
- Coverage    78.3%   77.3%   -1.1%     
========================================
  Files         165     165             
  Lines       28783   29125    +342     
========================================
- Hits        22555   22529     -26     
- Misses       6228    6596    +368

1 similar comment
@codecov
Copy link

codecov bot commented May 13, 2019

Codecov Report

Merging #4266 into master will decrease coverage by 1%.
The diff coverage is 32.9%.

@@           Coverage Diff            @@
##           master   #4266     +/-   ##
========================================
- Coverage    78.3%   77.3%   -1.1%     
========================================
  Files         165     165             
  Lines       28783   29125    +342     
========================================
- Hits        22555   22529     -26     
- Misses       6228    6596    +368

@pgarg66 pgarg66 merged commit c9b8601 into solana-labs:master May 13, 2019
@pgarg66 pgarg66 deleted the tvu branch May 13, 2019 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants