Skip to content

Commit

Permalink
randimize reset
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Aug 6, 2024
1 parent 6725f3c commit 555fba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Miner {
// Submit most difficult hash
let mut compute_budget = 500_000;
let mut ixs = vec![ore_api::instruction::auth(proof_pubkey(signer.pubkey()))];
if self.should_reset(config).await {
if self.should_reset(config).await && rand::thread_rng().gen_range(0..100).eq(&0) {
compute_budget += 100_000;
ixs.push(ore_api::instruction::reset(signer.pubkey()));
}
Expand Down

0 comments on commit 555fba0

Please sign in to comment.