forked from lthn/blockchain
unit_tests: fork_choice_rule_test fixed
This commit is contained in:
parent
6f4b36a8a8
commit
f9a72e3300
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ bool if_alt_chain_stronger(const currency::wide_difficulty_type& pos, const curr
|
||||||
alt_cumul_diff.pos_diff = pos;
|
alt_cumul_diff.pos_diff = pos;
|
||||||
static currency::wide_difficulty_type difficulty_pos_at_split_point = 400000;
|
static currency::wide_difficulty_type difficulty_pos_at_split_point = 400000;
|
||||||
static currency::wide_difficulty_type difficulty_pow_at_split_point = 4000;
|
static currency::wide_difficulty_type difficulty_pow_at_split_point = 4000;
|
||||||
currency::wide_difficulty_type main = currency::get_a_to_b_relative_cumulative_difficulty(difficulty_pos_at_split_point, difficulty_pow_at_split_point, main_cumul_diff, alt_cumul_diff);
|
boost::multiprecision::uint1024_t main = currency::get_a_to_b_relative_cumulative_difficulty(difficulty_pos_at_split_point, difficulty_pow_at_split_point, main_cumul_diff, alt_cumul_diff);
|
||||||
currency::wide_difficulty_type alt = currency::get_a_to_b_relative_cumulative_difficulty(difficulty_pos_at_split_point, difficulty_pow_at_split_point, alt_cumul_diff, main_cumul_diff);
|
boost::multiprecision::uint1024_t alt = currency::get_a_to_b_relative_cumulative_difficulty(difficulty_pos_at_split_point, difficulty_pow_at_split_point, alt_cumul_diff, main_cumul_diff);
|
||||||
if (alt > main)
|
if (alt > main)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue