forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
consenus: Implement LLMQ_100_67 quorums #3844
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5429d82
Add LLMQ_100_67 quorums
UdjinM6 25e1fba
Re-use DEPLOYMENT_V17 bit to activate LLMQ_100_67 quorums
UdjinM6 44a0faf
Add LLMQ_TEST_NEW quorum and test its activation
UdjinM6 0e0305b
Tweak mine_quorum to work correctly with multiple quorum types
UdjinM6 2d05a85
llmq: Rename IsQuorumTypeEnabledAtBlock -> IsQuorumTypeEnabled
xdustinface d00c9aa
chainparams|test: Rename llmq_test_new -> llmq_test_v17
xdustinface b092b79
chainparams|consensus|llmq: Rename LLMQ_TEST_NEW -> LLMQ_TEST_V17
xdustinface de92158
Tweak few strings and the name of the test
UdjinM6 1ae70b1
llmq: Make GetEnabledQuorumTypes return a vector of LLMQTypes, introd…
PastaPastaPasta 8f82215
Tweak minSize
UdjinM6 ff997db
Exclude LLMQ_100_67 from Concentrated Recovery
UdjinM6 6b71409
Update test/functional/feature_new_quorum_type_activation.py
UdjinM6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/usr/bin/env python3 | ||
| # Copyright (c) 2020 The Dash Core developers | ||
| # Distributed under the MIT software license, see the accompanying | ||
| # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
| from test_framework.test_framework import BitcoinTestFramework | ||
| from test_framework.util import assert_equal, get_bip9_status | ||
|
|
||
| ''' | ||
| feature_new_quorum_type_activation.py | ||
|
|
||
| Tests the activation of a new quorum type in v17 via a bip9-like hardfork | ||
|
|
||
| ''' | ||
|
|
||
|
|
||
| class NewQuorumTypeActivationTest(BitcoinTestFramework): | ||
| def set_test_params(self): | ||
| self.num_nodes = 1 | ||
|
|
||
| def run_test(self): | ||
| assert_equal(get_bip9_status(self.nodes[0], 'v17')['status'], 'locked_in') | ||
| ql = self.nodes[0].quorum("list") | ||
| assert_equal(len(ql), 1) | ||
| assert("llmq_test_v17" not in ql) | ||
| self.nodes[0].generate(99) | ||
| assert_equal(get_bip9_status(self.nodes[0], 'v17')['status'], 'active') | ||
| self.nodes[0].generate(1) | ||
| ql = self.nodes[0].quorum("list") | ||
| assert_equal(len(ql), 2) | ||
| assert("llmq_test_v17" in ql) | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| NewQuorumTypeActivationTest().main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a bit more thought about these values and figuring out what a good value is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per https://github.com/dashpay/dash/blob/master/src/consensus/params.h#L119-L121,
keepOldConnectionshas to be 25 (or more).