aboutsummaryrefslogtreecommitdiff
path: root/src/test/miner_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-11-17 13:08:30 -0800
committerPieter Wuille <[email protected]>2016-11-17 13:23:50 -0800
commit9346f8429957e356d21c665bab59fe45bcf1f74e (patch)
treea4d65bb5589741c522c6c13ba20448abf7e64913 /src/test/miner_tests.cpp
parentMerge #9156: Add compile and link options echo to configure (diff)
parentReplace CValidationState param in ProcessNewBlock with BlockChecked (diff)
downloaddiscoin-9346f8429957e356d21c665bab59fe45bcf1f74e.tar.xz
discoin-9346f8429957e356d21c665bab59fe45bcf1f74e.zip
Merge #9075: Decouple peer-processing-logic from block-connection-logic (#3)
ae22357 Replace CValidationState param in ProcessNewBlock with BlockChecked (Matt Corallo) 7c98ce5 Remove pfrom parameter from ProcessNewBlock (Matt Corallo) e2e069d Revert "RPC: Give more details when "generate" fails" (Matt Corallo)
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 2762cafa3..1ef70c343 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, NULL, pblock, true, NULL, false));
- BOOST_CHECK(state.IsValid());
+ BOOST_CHECK(ProcessNewBlock(chainparams, pblock, true, NULL, NULL));
pblock->hashPrevBlock = pblock->GetHash();
}