mindiff exception for notaries

This commit is contained in:
jl777
2016-09-23 10:30:15 -03:00
parent 1e613927be
commit 50027f0631
10 changed files with 58 additions and 26 deletions

View File

@@ -37,8 +37,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(0x200f0f0f);
BOOST_CHECK_EQUAL(0x200f0f0f,
bnAvg.SetCompact(KOMODO_MINDIFF_NBITS);
BOOST_CHECK_EQUAL(KOMODO_MINDIFF_NBITS,
CalculateNextWorkRequired(bnAvg, nThisTime, nLastRetargetTime, params));
}