Update tests for new genesis blocks

This commit is contained in:
Jack Grigg
2016-09-07 09:50:28 +12:00
parent 66f07f5d0d
commit 4a749674a8
2 changed files with 112 additions and 112 deletions

View File

@@ -40,8 +40,8 @@ BOOST_AUTO_TEST_CASE(get_next_work_pow_limit)
pindexLast.nTime = 1233061996; // Block #2015 of Bitcoin
// This represents an average difficulty in the current algorithm
// TODO change once the harder genesis block is generated
pindexLast.nBits = 0x207fffff;
BOOST_CHECK_EQUAL(CalculateNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x207fffff);
pindexLast.nBits = 0x200f0f0f;
BOOST_CHECK_EQUAL(CalculateNextWorkRequired(&pindexLast, nLastRetargetTime, params), 0x200f0f0f);
}
/* Test the constraint on the lower bound for actual time taken */