Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
4576d43b7b
  1. 4
      src/test/checkblock_tests.cpp

4
src/test/checkblock_tests.cpp

@ -40,6 +40,8 @@ bool read_block(const std::string& filename, CBlock& block)
return true;
}
int32_t komodo_block2height(CBlock *block)
BOOST_AUTO_TEST_CASE(May15)
{
// Putting a 1MB binary file in the git repository is not a great
@ -56,7 +58,7 @@ BOOST_AUTO_TEST_CASE(May15)
// After May 15'th, big blocks are OK:
forkingBlock.nTime = tMay15; // Invalidates PoW
BOOST_CHECK(CheckBlock(forkingBlock, state, false, false));
BOOST_CHECK(CheckBlock(komodo_block2height(&forkingBlock),forkingBlock, state, false, false));
}
SetMockTime(0);

Loading…
Cancel
Save