mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
re-enabled mining
This commit is contained in:
@@ -11,6 +11,7 @@ use solana_client::{
|
||||
use solana_sdk::{
|
||||
compute_budget::ComputeBudgetInstruction,
|
||||
keccak::hash,
|
||||
pubkey,
|
||||
pubkey::Pubkey,
|
||||
signature::{read_keypair_file, Signer},
|
||||
transaction::Transaction,
|
||||
@@ -84,6 +85,9 @@ async fn main() {
|
||||
"benchmark" => {
|
||||
benchmark_keccak().await.unwrap();
|
||||
}
|
||||
"claim_seeker" => {
|
||||
claim_seeker(&rpc, &payer).await.unwrap();
|
||||
}
|
||||
_ => panic!("Invalid command"),
|
||||
};
|
||||
}
|
||||
@@ -221,6 +225,17 @@ async fn swap(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn claim_seeker(
|
||||
rpc: &RpcClient,
|
||||
payer: &solana_sdk::signer::keypair::Keypair,
|
||||
) -> Result<(), anyhow::Error> {
|
||||
let seeker_mint = pubkey!("5mXbkqKz883aufhAsx3p5Z1NcvD2ppZbdTTznM6oUKLj");
|
||||
let ix = ore_api::sdk::claim_seeker(payer.pubkey(), seeker_mint);
|
||||
// submit_transaction(rpc, payer, &[ix]).await?;
|
||||
simulate_transaction(rpc, payer, &[ix]).await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn set_admin(
|
||||
rpc: &RpcClient,
|
||||
payer: &solana_sdk::signer::keypair::Keypair,
|
||||
|
||||
Reference in New Issue
Block a user