Skip to content

Conversation

@jtimon
Copy link
Contributor

@jtimon jtimon commented Mar 12, 2018

Since the scriptPubKey for signing blocks never changes, there's no
point in repeating it with every block header.

Closed #189 by accident, it seems restoring the branch doesn't make it, so I opened this one instead.

Dependencies:

@jtimon
Copy link
Contributor Author

jtimon commented Mar 14, 2018

Fixed bug, checking hashPrevBlock.IsNull() instead of proof.IsNull() in CBlockHeader::IsNull().
Perhaps hashMerkleRoot.IsNull() would be more appropriate?
Thanks @instagibbs for finding the bug.

Probably a good next simplification step is to remove the Proof class, now more clearly redundant.

@instagibbs
Copy link
Contributor

utACK fe713a6

@jtimon
Copy link
Contributor Author

jtimon commented Jul 10, 2018

Rebased. Separating #386 out of this.

@jtimon jtimon force-pushed the e14-blocksign-hf3 branch 2 times, most recently from 60ac98f to 3765e6d Compare July 10, 2018 01:33
Since the scriptPubKey for signing blocks never changes, there's no
point reading repeating it from every block header.
@jtimon jtimon force-pushed the e14-blocksign-hf3 branch from 3765e6d to 96486e8 Compare July 10, 2018 01:55
@jtimon jtimon changed the title HF: Move block.proof.challenge to Consensus::Params::signblockScript HF: Move block.proof.challenge to Consensus::Params::signblockscript Jul 10, 2018
jtimon added 2 commits July 11, 2018 01:07
Since the scriptPubKey for signing blocks never changes, there's no
point in repeating it with every block header.
@jtimon jtimon force-pushed the e14-blocksign-hf3 branch from 96486e8 to 3311102 Compare July 10, 2018 23:07
@jtimon
Copy link
Contributor Author

jtimon commented Sep 7, 2018

needs rebase

@jtimon jtimon added 0.14.1 and removed 0.14.1 labels Oct 16, 2018
@instagibbs
Copy link
Contributor

Needs port to master branch at some point. Will be undertaken for #534 . Closing.

@instagibbs instagibbs closed this Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants