Skip to content

Commit

Permalink
#73 DEVCOIN doesn't enforce 2 blocks (merged mining compatibility).
Browse files Browse the repository at this point in the history
  • Loading branch information
develCuy committed Jan 30, 2022
1 parent e016385 commit eb34b32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validation.cpp
Expand Up @@ -3271,6 +3271,9 @@ static bool ContextualCheckBlock(const CBlock& block, BlockValidationState& stat
}
}

// DEVCOIN currently doesn't enforce 2 blocks, since merged mining
// produces v1 blocks and normal mining should produce v2 blocks.
/*
// Enforce rule that the coinbase starts with serialized block height
if (DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_HEIGHTINCB))
{
Expand All @@ -3280,6 +3283,7 @@ static bool ContextualCheckBlock(const CBlock& block, BlockValidationState& stat
return state.Invalid(BlockValidationResult::BLOCK_CONSENSUS, "bad-cb-height", "block height mismatch in coinbase");
}
}
*/

// Validation for witness commitments.
// * We compute the witness hash (which is the hash including witnesses) of all the block's transactions, except the
Expand Down

0 comments on commit eb34b32

Please sign in to comment.