Skip to content
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

#10 unexpected block version warning #17

Merged
merged 3 commits into from Mar 2, 2017

Conversation

aguycalled
Copy link
Member

No description provided.

@@ -7652,7 +7652,7 @@ static bool CheckStakeKernelHashV2(CBlockIndex* pindexPrev, unsigned int nBits,

// Now check if proof-of-stake hash meets target protocol
if (CBigNum(ArithToUint256(hashProofOfStake)) > bnTarget)
return error("CheckStakeKernelHash() : Hash %s does not meet target %s",hashProofOfStake.GetHex(),bnTarget.GetHex());
return false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it safe to remove this error return?

@@ -202,11 +202,6 @@ CBlockTemplate* BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn, bo
pblock->nVersion = 0x7;
pblocktemplate->vTxSigOpsCost[0] = WITNESS_SCALE_FACTOR * GetLegacySigOpCount(pblock->vtx[0]);

CValidationState state;
if (!TestBlockValidity(state, chainparams, *pblock, pindexPrev, false, false, false)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it also safe to remove this block validity check?

@proletesseract proletesseract merged commit 8495301 into master Mar 2, 2017
@proletesseract proletesseract deleted the #10-unexpected-block-version-warning branch March 2, 2017 22:45
proletesseract added a commit that referenced this pull request May 3, 2019
merging master to get PR's #450 and #459
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants