Skip to content

Commit

Permalink
recalibrate itf tproxy vardiff
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Dec 11, 2024
1 parent e045935 commit 29099d5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,17 @@ pub async fn start_sv2_translator(upstream: SocketAddr) -> SocketAddr {
.expect("failed");
let listening_address = get_available_address();
let listening_port = listening_address.port();
let hashrate = measure_hashrate(3) as f32 / 20.0;
let min_individual_miner_hashrate = hashrate;
let shares_per_minute = 100.0;

// use a deliberately high values here
// allows to find valid shares in a short period of time
let shares_per_minute = 1_000.0;
let hashrate_attenuator = 10_000.0;

let attenuated_hashrate = measure_hashrate(3) as f32 / hashrate_attenuator;
let min_individual_miner_hashrate = attenuated_hashrate;
let channel_nominal_hashrate = attenuated_hashrate;

let channel_diff_update_interval = 60;
let channel_nominal_hashrate = hashrate;
let downstream_difficulty_config =
translator_sv2::proxy_config::DownstreamDifficultyConfig::new(
min_individual_miner_hashrate,
Expand Down

0 comments on commit 29099d5

Please sign in to comment.