From 555fba06e94a60f3a3693fa741d55bf47c4b8420 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 6 Aug 2024 00:36:58 +0000 Subject: [PATCH 1/2] randimize reset --- src/mine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mine.rs b/src/mine.rs index aa6de6e1..46cf1da1 100644 --- a/src/mine.rs +++ b/src/mine.rs @@ -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())); } From 2c4f02ed80b655cc15120b9b1ab9aef636a6e8ec Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 6 Aug 2024 00:42:33 +0000 Subject: [PATCH 2/2] bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 09fd9d85..a5117a98 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2570,7 +2570,7 @@ dependencies = [ [[package]] name = "ore-cli" -version = "1.1.0" +version = "1.1.1" dependencies = [ "bincode", "bs58 0.5.1", diff --git a/Cargo.toml b/Cargo.toml index 9cc2fc99..a4314f1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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."