aboutsummaryrefslogtreecommitdiff
path: root/src/test/miner_tests.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-10-27 16:30:17 -0400
committerMatt Corallo <git@bluematt.me>2016-11-09 11:21:55 -0800
commitae223576077448bd4ec250c73f5d8fe5e9a9ac7d (patch)
tree8b894f61a09b10dc25d987e695bd9ee85523312b /src/test/miner_tests.cpp
parent7c98ce584ec23bcddcba8cdb33efa6547212f6ef (diff)
Replace CValidationState param in ProcessNewBlock with BlockChecked
Diffstat (limited to 'src/test/miner_tests.cpp')
-rw-r--r--src/test/miner_tests.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp
index e71a4b1ebc..1ef70c343c 100644
--- a/src/test/miner_tests.cpp
+++ b/src/test/miner_tests.cpp
@@ -222,9 +222,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
txFirst.push_back(new CTransaction(pblock->vtx[0]));
pblock->hashMerkleRoot = BlockMerkleRoot(*pblock);
pblock->nNonce = blockinfo[i].nonce;
- CValidationState state;
- BOOST_CHECK(ProcessNewBlock(state, chainparams, pblock, true, NULL, NULL));
- BOOST_CHECK(state.IsValid());
+ BOOST_CHECK(ProcessNewBlock(chainparams, pblock, true, NULL, NULL));
pblock->hashPrevBlock = pblock->GetHash();
}