-
Notifications
You must be signed in to change notification settings - Fork 387
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
[WIP, 0.17] Signed blocks #452
Closed
Closed
Conversation
This file contains 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
30 tasks
this branch is in the wrong repo, oh well |
9952c93
to
bdb1737
Compare
All tests are complete and passing! |
closing in favor of #478 |
stevenroose
added a commit
that referenced
this pull request
Dec 19, 2018
ff32b17 elements style genesis block commits to signblockscript in CommitToArguments (Gregory Sanders) 3169d38 added blocksign functional test (Gregory Sanders) d78f076 Signed blocks by default for custom chains (Gregory Sanders) 8723deb RPC support for signed blocks, compact blocks infrastructure (Gregory Sanders) 5877da8 Expose signed block information over RPC when active (Gregory Sanders) 0d7e0f9 Miner support for signed blocks (Gregory Sanders) 0e47322 Expose signed blocks in validation.cpp (Gregory Sanders) cd4e553 CProof (re)setting and validation helper functions (Gregory Sanders) 2a3dcde Set genesis block CProof to signblockscript if signed blocks active (Gregory Sanders) 6ad13bb Signed blocks have work of 1 each (Gregory Sanders) 6856beb Have chainstate store CProof for each block header (Gregory Sanders) 60f7062 Define block signatures, active IFF g_signed_blocks active (Gregory Sanders) f7c5cf7 Add not yet enforced chainparam arguments for signed blocks (Gregory Sanders) 7bc578a Add SimpleSignatureChecker, SCRIPT_NO_SIGHASH_BYTE validation flag (Gregory Sanders) 6c91446 Expose check_pow for compact blocks, helper to get available Tx list (Gregory Sanders) Pull request description: Squashed and rebased version of: #452 on my own repo. Adds `-con_signed_blocks` which enables signed block mode with `-signblockscript` defining the encumbrance, which replaces pow-based data in block headers with that script. `-con_max_block_sig_size` is a novel argument compared to `elements-0.14.1`, which caps the total size of the signature in the block header. This avoids all number of DoS concerns and simplifies the miner code. This also creates signed block RPCs, as well as compact block RPCs for blocksigner use. Tree-SHA512: af2624ff8d456673c40fba283f3cdbd2559b528b87ff9b10335f5fb893ff7d7b286655c9856bb23f84b5722c7ad0091e77208c89c18a6f71b1cbd18076841071
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Need to do history cleanup, and more sanity checks for rpc calls that use signed blocks.