diff --git a/Cargo.lock b/Cargo.lock index 4d3e0822..67c2b19d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2550,9 +2550,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "ore-api" -version = "2.0.0-beta.4" +version = "2.0.0-beta.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19fbe0bd8ea87bfa3332758046a84b899f968539251ba9f05e2a1bcc3803a4ff" +checksum = "5a0667333ca14f36262dee12e2fd9cd352eef0ada52b7550b4223341ccc2857d" dependencies = [ "array-const-fn-init", "bytemuck", @@ -2571,7 +2571,7 @@ dependencies = [ [[package]] name = "ore-cli" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" dependencies = [ "bincode", "bs58 0.5.1", @@ -2599,9 +2599,9 @@ dependencies = [ [[package]] name = "ore-utils" -version = "2.0.0-beta.4" +version = "2.0.0-beta.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d36515583d8cac4ea4e65af699bde9a3ebc5cfcb6cef15eb454fc305879a7f9a" +checksum = "f89f215373983ff07fa2407fd07b87e131b82b2c453d2712c325aa1d2537d790" dependencies = [ "bytemuck", "solana-program", diff --git a/Cargo.toml b/Cargo.toml index c4233109..ba5bda96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ore-cli" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" description = "A command line interface for the ORE cryptocurrency mining." license = "Apache-2.0" edition = "2021" @@ -24,8 +24,8 @@ colored = "2.0" drillx = "2.0.0-beta.1" futures = "0.3.30" num_cpus = "1.16.0" -ore-api = "2.0.0-beta.4" -ore-utils = "2.0.0-beta.4" +ore-api = "2.0.0-beta.5" +ore-utils = "2.0.0-beta.5" rand = "0.8.4" solana-cli-config = "^1.18" solana-client = "^1.18" diff --git a/src/close.rs b/src/close.rs index 9b9c1c01..72695dfa 100644 --- a/src/close.rs +++ b/src/close.rs @@ -5,7 +5,7 @@ use spl_token::amount_to_ui_amount; use crate::{ args::ClaimArgs, send_and_confirm::ComputeBudget, - utils::{ask_confirm, get_proof}, + utils::{ask_confirm, get_proof_with_authority}, Miner, }; @@ -13,7 +13,7 @@ impl Miner { pub async fn close(&self) { // Confirm proof exists let signer = self.signer(); - let proof = get_proof(&self.rpc_client, signer.pubkey()).await; + let proof = get_proof_with_authority(&self.rpc_client, signer.pubkey()).await; // Confirm the user wants to close. if !ask_confirm( diff --git a/src/mine.rs b/src/mine.rs index 175c70aa..aa6de6e1 100644 --- a/src/mine.rs +++ b/src/mine.rs @@ -17,7 +17,7 @@ use solana_sdk::signer::Signer; use crate::{ args::MineArgs, send_and_confirm::ComputeBudget, - utils::{amount_u64_to_string, get_clock, get_config, get_proof_with_authority}, + utils::{amount_u64_to_string, get_clock, get_config, get_proof_with_authority, proof_pubkey}, Miner, }; @@ -54,7 +54,7 @@ impl Miner { // Submit most difficult hash let mut compute_budget = 500_000; - let mut ixs = vec![]; + let mut ixs = vec![ore_api::instruction::auth(proof_pubkey(signer.pubkey()))]; if self.should_reset(config).await { compute_budget += 100_000; ixs.push(ore_api::instruction::reset(signer.pubkey()));