Hush those mindiff bits

This commit is contained in:
Duke Leto
2020-12-08 07:06:13 -05:00
parent 7f879916ae
commit 130325b201
7 changed files with 14 additions and 14 deletions

View File

@@ -38,8 +38,8 @@ BOOST_AUTO_TEST_CASE(get_next_work_pow_limit)
int64_t nThisTime = 1233061996; // Block #2015 of Bitcoin
arith_uint256 bnAvg;
// TODO change once the harder genesis block is generated
bnAvg.SetCompact(KOMODO_MINDIFF_NBITS);
BOOST_CHECK_EQUAL(KOMODO_MINDIFF_NBITS,
bnAvg.SetCompact(HUSH_MINDIFF_NBITS);
BOOST_CHECK_EQUAL(HUSH_MINDIFF_NBITS,
CalculateNextWorkRequired(bnAvg, nThisTime, nLastRetargetTime, params));
}