Skip to content

Commit 5462e50

Browse files
authored
Merge pull request #15 from barrystyle/tests/blockencodings_tests
test: correct blockencodings_tests
2 parents 941dfc8 + 0637d9b commit 5462e50

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/test/blockencodings_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static CBlock BuildBlockTestCase() {
4949
bool mutated;
5050
block.hashMerkleRoot = BlockMerkleRoot(block, &mutated);
5151
assert(!mutated);
52-
while (!CheckProofOfWork(block.GetHash(), block.nBits, Params().GetConsensus())) ++block.nNonce;
52+
while (!CheckProofOfWork(block.GetPoWAlgoHash(Params().GetConsensus()), block.nBits, Params().GetConsensus())) ++block.nNonce;
5353
return block;
5454
}
5555

@@ -297,7 +297,7 @@ BOOST_AUTO_TEST_CASE(EmptyBlockRoundTripTest)
297297
bool mutated;
298298
block.hashMerkleRoot = BlockMerkleRoot(block, &mutated);
299299
assert(!mutated);
300-
while (!CheckProofOfWork(block.GetHash(), block.nBits, Params().GetConsensus())) ++block.nNonce;
300+
while (!CheckProofOfWork(block.GetPoWAlgoHash(Params().GetConsensus()), block.nBits, Params().GetConsensus())) ++block.nNonce;
301301

302302
// Test simple header round-trip with only coinbase
303303
{

src/validation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
#include <boost/algorithm/string/replace.hpp>
4848
#include <boost/thread.hpp>
49+
#include <boost/bind.hpp>
4950

5051
#if defined(NDEBUG)
5152
# error "DigiByte cannot be compiled without assertions."

src/validationinterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <atomic>
1818
#include <future>
1919

20+
#include <boost/bind.hpp>
2021
#include <boost/signals2/signal.hpp>
2122

2223
struct MainSignalsInstance {

0 commit comments

Comments
 (0)