Fix compact block handling to not ban if block is invalid

This commit is contained in:
Suhas Daftuar
2016-10-31 10:03:49 -04:00
parent c93beac43f
commit 88c35491ab
7 changed files with 40 additions and 20 deletions

View File

@@ -127,7 +127,7 @@ TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>&
while (!CheckProofOfWork(block.GetHash(), block.nBits, chainparams.GetConsensus())) ++block.nNonce;
CValidationState state;
ProcessNewBlock(state, chainparams, NULL, &block, true, NULL);
ProcessNewBlock(state, chainparams, NULL, &block, true, NULL, false);
CBlock result = block;
return result;