From 31bf9e72ba1000a39114119c02ff19c83b6fd0be Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Wed, 5 Aug 2015 10:16:47 +0200 Subject: [PATCH] get block number for parent in difficulty test --- test/libethcore/difficulty.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libethcore/difficulty.cpp b/test/libethcore/difficulty.cpp index 6defcd51d..ea122b7e4 100644 --- a/test/libethcore/difficulty.cpp +++ b/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"]));