Skip to content

Commit

Permalink
Merge pull request #93 from regolith-labs/hardhat/rand-reset
Browse files Browse the repository at this point in the history
Randomize reset ixs
  • Loading branch information
HardhatChad authored Aug 6, 2024
2 parents 6725f3c + 2c4f02e commit bba3232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ore-cli"
version = "1.1.0"
version = "1.1.1"
edition = "2021"
license = "Apache-2.0"
description = "A command line interface for ORE cryptocurrency mining."
Expand Down
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 bba3232

Please sign in to comment.