Skip to content

Commit bba3232

Browse files
authored
Merge pull request #93 from regolith-labs/hardhat/rand-reset
Randomize reset ixs
2 parents 6725f3c + 2c4f02e commit bba3232

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ore-cli"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "A command line interface for ORE cryptocurrency mining."

src/mine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Miner {
5555
// Submit most difficult hash
5656
let mut compute_budget = 500_000;
5757
let mut ixs = vec![ore_api::instruction::auth(proof_pubkey(signer.pubkey()))];
58-
if self.should_reset(config).await {
58+
if self.should_reset(config).await && rand::thread_rng().gen_range(0..100).eq(&0) {
5959
compute_budget += 100_000;
6060
ixs.push(ore_api::instruction::reset(signer.pubkey()));
6161
}

0 commit comments

Comments
 (0)