forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: mnlistdiff v20 CL sig quorums #5377
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
PastaPastaPasta
merged 20 commits into
dashpay:develop
from
ogabrielides:mnlistdiff_quorums_clsigs_spv
Jul 10, 2023
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e619678
quorums CL sigs for SPV clients
ogabrielides 7c177e1
linter fixes
ogabrielides 5d9ffb1
linter fixes
ogabrielides 2dc0cdc
Update lint-cppcheck-dash.sh
ogabrielides 22f8606
Create release-notes-5377.md
ogabrielides 574edcb
fix
ogabrielides 0429ad7
refactoring
ogabrielides 94b141a
Apply suggestions from code review
ogabrielides ab5814e
refactoring
ogabrielides 592ae62
Update doc/release-notes-5377.md
ogabrielides c23d259
simplify logic by using the fact that quorumIndex is 0 for non-rotate…
PastaPastaPasta cdb1b8e
use enumerate
PastaPastaPasta d2232d6
refactor / modernize
PastaPastaPasta ad529f4
Update release-notes-5377.md
ogabrielides 792bdc8
verify quorum members based on clsigs
ogabrielides cdd8e8e
cleanup
ogabrielides 93fbd16
Enforce divert CL in CbTx before one quorum cycle
ogabrielides 735d34a
typo fix
ogabrielides 14a4d5a
Bumped MIN_MASTERNODE_PROTO_VERSION
ogabrielides 410c197
restored empty lines
ogabrielides 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| Updated RPCs | ||
| -------- | ||
|
|
||
| - `protx diff` RPC returns a new field `quorumsCLSigs`. | ||
| This field is a list containing: a ChainLock signature and the list of corresponding quorum indexes in `newQuorums`. | ||
|
|
||
| `MNLISTDIFF` P2P message | ||
| -------- | ||
|
|
||
| Starting with protocol version `70230`, the following fields are added to the `MNLISTDIFF` after `newQuorums`. | ||
|
|
||
| | Field | Type | Size | Description | | ||
| |--------------------|-----------------------|----------|---------------------------------------------------------------------| | ||
| | quorumsCLSigsCount | compactSize uint | 1-9 | Number of quorumsCLSigs elements | | ||
| | quorumsCLSigs | quorumsCLSigsObject[] | variable | CL Sig used to calculate members per quorum indexes (in newQuorums) | | ||
|
|
||
| The content of `quorumsCLSigsObject`: | ||
|
|
||
| | Field | Type | Size | Description | | ||
| |---------------|------------------|----------|---------------------------------------------------------------------------------------------| | ||
| | signature | BLSSig | 96 | ChainLock signature | | ||
| | indexSetCount | compactSize uint | 1-9 | Number of quorum indexes using the same `signature` for their member calculation | | ||
| | indexSet | uint16_t[] | variable | Quorum indexes corresponding in `newQuorums` using `signature` for their member calculation | | ||
|
|
||
| Note: The `quorumsCLSigs` field in both RPC and P2P will only be populated after the v20 activation. |
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
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.
Uh oh!
There was an error while loading. Please reload this page.