Update tests for new genesis blocks
Miner tests have been commented out, and will be regenerated after launch.
This commit is contained in:
@@ -36,8 +36,8 @@ BOOST_AUTO_TEST_CASE(get_next_work_pow_limit)
|
||||
int64_t nLastRetargetTime = 1231006505; // Block #0 of Bitcoin
|
||||
int64_t nThisTime = 1233061996; // Block #2015 of Bitcoin
|
||||
arith_uint256 bnAvg;
|
||||
bnAvg.SetCompact(0x2007ffff);
|
||||
BOOST_CHECK_EQUAL(0x2007ffff,
|
||||
bnAvg.SetCompact(0x1f07ffff);
|
||||
BOOST_CHECK_EQUAL(0x1f07ffff,
|
||||
CalculateNextWorkRequired(bnAvg, nThisTime, nLastRetargetTime, params));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user