-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
Implementation of BIP 101 : maximum block size increase #6341
Closed
Commits on Jul 14, 2015
-
Refactor: protect mapNodeState with its own lock
Encapsulate mapNodeState in a smart-pointer class with its own lock. Why? So Misbehaving() can be called from the sanity-check-a-message code without holding cs_main. And to get better exception safety (the smart-pointer approach gives RAII semantics). And because protecting fewer things with cs_main is a good idea. Tested by compiling with -DDEBUG_LOCKORDER, running all of the qa/rpc-tests, and running a node on the main network overnight.
Configuration menu - View commit details
-
Copy full SHA for 03f877f - Browse repository at this point
Copy the full SHA 03f877fView commit details -
Refactor, new CNode::FinalizeHeader method
I need this to write some unit tests for the CNode::ReceiveMsgBytes() function.
Configuration menu - View commit details
-
Copy full SHA for 0e096a0 - Browse repository at this point
Copy the full SHA 0e096a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 021122c - Browse repository at this point
Copy the full SHA 021122cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 618d9f4 - Browse repository at this point
Copy the full SHA 618d9f4View commit details -
Implement hard fork to allow bigger blocks
Unit test and code for a bigger-block hard fork. Parameters are: 8MB cap ... doubling every two years (so 16MB in 2018) ... for twenty years ... earliest possible chain fork: 11 Jan 2016 ... after miner supermajority (code in the next patch) ... and grace period once miner supermajority achieved (code in next patch)
Configuration menu - View commit details
-
Copy full SHA for 7148527 - Browse repository at this point
Copy the full SHA 7148527View commit details -
Implement miner vote and grace period for block size fork
These changes implement and test miner rollout of a bigger block size hard fork. qa/rpc-tests/bigblocks.py mines a 50% upgraded -regtest chain, generates 4MB of transactions, and then tests the upgrade and mining code to make sure larger blocks are only created when the fork conditions are met. The activation state of the fork is stored in the block tree database; it is written when the threshold is met (and unwritten if the threshold block is re-orged out of the best chain), and read at startup.
Configuration menu - View commit details
-
Copy full SHA for b7492b1 - Browse repository at this point
Copy the full SHA b7492b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c63eb70 - Browse repository at this point
Copy the full SHA c63eb70View commit details -
Configuration menu - View commit details
-
Copy full SHA for b58d925 - Browse repository at this point
Copy the full SHA b58d925View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.