Browse Source

get block number for parent in difficulty test

cl-refactor
CJentzsch 10 years ago
parent
commit
31bf9e72ba
  1. 1
      test/libethcore/difficulty.cpp

1
test/libethcore/difficulty.cpp

@ -50,6 +50,7 @@ BOOST_AUTO_TEST_CASE(difficultyTests)
BlockInfo parent;
parent.setTimestamp(test::toInt(o["parentTimestamp"]));
parent.setDifficulty(test::toInt(o["parentDifficulty"]));
parent.setNumber(test::toInt(o["currentBlockNumber"]) - 1);
BlockInfo current;
current.setTimestamp(test::toInt(o["currentTimestamp"]));

Loading…
Cancel
Save