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

Lock Down the ReceiveBlock Function #2387

Merged
merged 4 commits into from
Apr 26, 2019
Merged

Conversation

rauljordan
Copy link
Contributor

Part of #1586. We should add a mutex to processing blocks so we only process one at a time no matter what. The receive block function is main entrypoint for processing both in p2p and RPC block proposals, and this mutex will eliminate much of the pain we've been seeing lately.

@codecov
Copy link

codecov bot commented Apr 25, 2019

Codecov Report

Merging #2387 into master will decrease coverage by 0.23%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2387      +/-   ##
==========================================
- Coverage   67.51%   67.27%   -0.24%     
==========================================
  Files         119      119              
  Lines        9711     9507     -204     
==========================================
- Hits         6556     6396     -160     
+ Misses       2420     2408      -12     
+ Partials      735      703      -32

Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

Great

@rauljordan rauljordan merged commit 2318a53 into master Apr 26, 2019
@rauljordan rauljordan deleted the lock-block-processing branch July 27, 2019 14:44
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.

2 participants