Browse Source

Update unit test to match rule enforcement starts 21 March

0.8
Gavin Andresen 12 years ago
parent
commit
d3e8c6a9d3
  1. 2
      src/test/checkblock_tests.cpp

2
src/test/checkblock_tests.cpp

@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(May15)
if (read_block("Mar12Fork.dat", forkingBlock)) if (read_block("Mar12Fork.dat", forkingBlock))
{ {
CValidationState state; CValidationState state;
BOOST_CHECK(!forkingBlock.CheckBlock(state, true, true)); forkingBlock.nTime = tMay15-1; // Invalidates PoW
BOOST_CHECK(!forkingBlock.CheckBlock(state, false, false)); BOOST_CHECK(!forkingBlock.CheckBlock(state, false, false));
// After May 15'th, big blocks are OK: // After May 15'th, big blocks are OK:

Loading…
Cancel
Save