diff options
| author | Pieter Wuille <[email protected]> | 2016-11-17 13:08:30 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-17 13:23:50 -0800 |
| commit | 9346f8429957e356d21c665bab59fe45bcf1f74e (patch) | |
| tree | a4d65bb5589741c522c6c13ba20448abf7e64913 /src/test/miner_tests.cpp | |
| parent | Merge #9156: Add compile and link options echo to configure (diff) | |
| parent | Replace CValidationState param in ProcessNewBlock with BlockChecked (diff) | |
| download | discoin-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.cpp | 4 |
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(); } |