diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2016-10-31 10:03:49 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2016-11-03 13:07:12 -0400 |
commit | 88c35491ab19f9afdf9b3fa9356a072f70ef2f55 (patch) | |
tree | 979296a970eea7001a5133bb792bda690bcb428c /src/test/miner_tests.cpp | |
parent | c93beac43fa66c8431e3952283edb5be8c65606c (diff) |
Fix compact block handling to not ban if block is invalid
Diffstat (limited to 'src/test/miner_tests.cpp')
-rw-r--r-- | src/test/miner_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp index a94979fd77..2762cafa38 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -223,7 +223,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) pblock->hashMerkleRoot = BlockMerkleRoot(*pblock); pblock->nNonce = blockinfo[i].nonce; CValidationState state; - BOOST_CHECK(ProcessNewBlock(state, chainparams, NULL, pblock, true, NULL)); + BOOST_CHECK(ProcessNewBlock(state, chainparams, NULL, pblock, true, NULL, false)); BOOST_CHECK(state.IsValid()); pblock->hashPrevBlock = pblock->GetHash(); } |