Skip to content

Commit

Permalink
Merge pull request digibyte#15 from barrystyle/tests/blockencodings_t…
Browse files Browse the repository at this point in the history
…ests

test: correct blockencodings_tests
  • Loading branch information
gto90 authored Apr 1, 2021
2 parents 941dfc8 + 0637d9b commit 5462e50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/blockencodings_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static CBlock BuildBlockTestCase() {
bool mutated;
block.hashMerkleRoot = BlockMerkleRoot(block, &mutated);
assert(!mutated);
while (!CheckProofOfWork(block.GetHash(), block.nBits, Params().GetConsensus())) ++block.nNonce;
while (!CheckProofOfWork(block.GetPoWAlgoHash(Params().GetConsensus()), block.nBits, Params().GetConsensus())) ++block.nNonce;
return block;
}

Expand Down Expand Up @@ -297,7 +297,7 @@ BOOST_AUTO_TEST_CASE(EmptyBlockRoundTripTest)
bool mutated;
block.hashMerkleRoot = BlockMerkleRoot(block, &mutated);
assert(!mutated);
while (!CheckProofOfWork(block.GetHash(), block.nBits, Params().GetConsensus())) ++block.nNonce;
while (!CheckProofOfWork(block.GetPoWAlgoHash(Params().GetConsensus()), block.nBits, Params().GetConsensus())) ++block.nNonce;

// Test simple header round-trip with only coinbase
{
Expand Down
1 change: 1 addition & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

#include <boost/algorithm/string/replace.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>

#if defined(NDEBUG)
# error "DigiByte cannot be compiled without assertions."
Expand Down
1 change: 1 addition & 0 deletions src/validationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <atomic>
#include <future>

#include <boost/bind.hpp>
#include <boost/signals2/signal.hpp>

struct MainSignalsInstance {
Expand Down

0 comments on commit 5462e50

Please sign in to comment.