Code Monkey home page Code Monkey logo

ore-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ore-cli's Issues

Program mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A failed: custom program error: 0x3"]

Some simulations return this error. Any idea on 0x3? Its ATA related?

preflight filters it from getting into the chain now, but its happens a lot, before sending a good tx.

Error Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { code: -32002, message: "Transaction simulation failed: Error processing Instruction 3: custom program error: 0x3", data: SendTransactionPreflightFailure(RpcSimulateTransactionResult { err: Some(InstructionError(3, Custom(3))), logs: Some(["Program 11111111111111111111111111111111 invoke [1]", "Program 11111111111111111111111111111111 success", "Program ComputeBudget111111111111111111111111111111 invoke [1]", "Program ComputeBudget111111111111111111111111111111 success", "Program ComputeBudget111111111111111111111111111111 invoke [1]", "Program ComputeBudget111111111111111111111111111111 success", "Program mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A invoke [1]", "Program mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A consumed 1856 of 2750 compute units", "Program mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A failed: custom program error: 0x3"]), accounts: None, units_consumed: Some(450), return_data: None, inner_instructions: None }) }) }

InvalidAccountOwner when claiming

Confirms: [Some(TransactionStatus { slot: 258322725, confirmations: Some(0), status: Err(InstructionError(2, InvalidAccountOwner)), err: Some(InstructionError(2, InvalidAccountOwner)), confirmation_status: Some(Confirmed) }), Some(TransactionStatus { slot: 258322723, confirmations: Some(1), status: Err(InstructionError(2, InvalidAccountOwner)), err: Some(InstructionError(2, InvalidAccountOwner)), confirmation_status: Some(Confirmed) }), None, None]
Transaction landed!
Claimed 3.12364093 ORE to account DVefbHqaRGT3NSAX2S5snLdQpzNroirZaLWxLea75Mg
3kK6xUHtRmMw8vTjKqnZsJ64SHLP6pxzphhJ1at7FcsTv4PWZRLBq58BqiCoPXD6arbtCHaeQ53ZCg8vsWwMTPah

I think the problem is that it initialized the sub account but didnt fund it? Not quite sure how to go about fixing it, hoping someone can help

Can't claim reward

Can't claim reward.

I can mine, but can't claim reward.

It never lands for the claiming...

Whether macOS, Windows 10.

  • macOS: M1 Max
  • Windows: Ryzen R7 5800X

Max retries

image

It doesn’t work if I use my own solana node rpc

Transaction did not land , plz help

Confirms: [None, None]
Confirms: [None, None]
Confirms: [None, None]
Confirms: [None, None]
Transaction did not land
Attempt: 2
XGmxxZg2LZp3FSbq7ATCUE7t7s3GFCYGkigsCEvKUBsdWrGTTL7L6pkbQ5eCQnC5oWpPCwu7CNw6HHuDA4cA3cM
Confirms: [None, None, None]
Confirms: [None, None, None]
Confirms: [None, None, None]
Confirms: [None, None, None]
Transaction did not land
Attempt: 3
2t5W7bFp5z9hNroeP6UgajETYGybg6EET836WhhEsv5Pq1FNP4DwMg2UY2nbhn4Yh6PqV1GKgtDL7JWbqi29fLqe
Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Transaction did not land
Attempt: 4
2L6d4eKpTnotxZv8awuLzj5EXPz9qBfKBHpuv9kZTUA4YY1SUPiCiCnye76J55vwwhovYN99Pd2NfjxLFT4FFFxj
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Transaction did not land

Max retries at attempt 4

Attempt: 4
4BtVbgZSuhAse9TEvKC9ihVZ7J9cZ1Va2SMiQaSobjgmz2pTm4K9uf8v7hQi5h9tuMgNhFQAcHcv2oTGUe2TS4Cp
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Confirms: [None, None, None, None, None]
Transaction did not land
thread 'main' panicked at /home/giga/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ore-cli-0.4.2/src/register.rs:27:14:
Transaction failed: Error { request: None, kind: Custom("Max retries") }

Ever :)

Recommendation after 0.4.9

So I have two machines, A uses 0.4.9, and B uses 0.4.4.

Because of the modification in 0.4.9 the mining speed of A machine us around 0.4-0.7x of B, tested over 8h of time.

Additionally, for the 0.4.9 version, there is a bug in checking balance or rewards:

❯ ore --keypair ~/.config/solana/id.json balance
Error { request: None, kind: RpcError(ForUser("Account could not be parsed as token account: pubkey=HiYdZP1Dqgb6evkg31w9cVVD9kp8zs1F6vAgCEavdyfx")) }

where the pub key is not associated with my account. (0.4.4 works all fine).

Recommendation:

  1. Increase the difficulty of mining (I assume this means finding a valid hash).
  2. Bug fix of the above mentioned issue.
  3. Disable the request of version < 0.4.9 so that the network load can also be reduced.

Transaction failed: Error { request: None, kind: Custom("Sim failed") }

thread 'main' panicked at /Users/USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ore-cli-0.4.0/src/mine.rs:89:26:
Transaction failed: Error { request: None, kind: Custom("Sim failed") }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

This is a recurring error here.
Maybe try catch this and put some attempts before closing the process, since simulations may vary on network conditions and can work right up in the next attempt.

I'll try to open a PR later on. Reporting here so maybe someone can fix it earlier.

But besides that, everything is running fine.
Captura de Tela 2024-04-02 às 18 57 39

pcRequestError("cluster version query failed: builder error: relative URL without a base")) }

Running
Generating challenge...
thread 'main' panicked at C:\Users\g.cargo\registry\src\index.crates.io-6f17d22bba15001f\ore-cli-0.4.4\src\send_and_confirm.rs:40:14:
called Result::unwrap() on an Err value: Error { request: None, kind: RpcError(RpcRequestError("cluster version query failed: builder error: relative URL without a base")) }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Exited

RPC Errors

I just pulled the latest version and transactions seem to be landing better now but giv me RPC errors.

"RPC response error -32002: Transaction simulation failed: Blockhash not found "

"RPC response error -32002: Transaction simulation failed: Error processing Instruction 2: custom program error: 0x5 [7 log messages]"

Feature - Parallel mining transactions

I cannot write rust, but i was thinking about how to make the process more efficient.

  1. Mining happens in its own thread and hashes that match gets saved in memory/list
  2. A seperate process that handles the send transaction and get signature events.
  3. That process needs to be able to send transactions parallel / async requests

Also the ability to set in parameter how often it checks the tx since rn, it uses a bunch of RPC calls that might be unnecessary.

This would maybe cause more problems with congestion, but that'd make the mining more efficient i think.

Build error: could not compile `libsecp256k1` (lib)

ubuntu22 build error:
Caused by:
process didn't exit successfully: /root/.rustup/toolchains/1.74.0-x86_64-unknown-linux-gnu/bin/rustc --crate-name libsecp256k1 --edition=2018 /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libsecp256k1-0.6.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=134 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="hmac"' --cfg 'feature="hmac-drbg"' --cfg 'feature="sha2"' --cfg 'feature="static-context"' --cfg 'feature="std"' --cfg 'feature="typenum"' -C metadata=c555b3002cdb8abb -C extra-filename=-c555b3002cdb8abb --out-dir /home/ubuntu/ore/target/release/deps -L dependency=/home/ubuntu/ore/target/release/deps --extern arrayref=/home/ubuntu/ore/target/release/deps/libarrayref-e59636b4c6236121.rmeta --extern base64=/home/ubuntu/ore/target/release/deps/libbase64-cddaffa00a92c5e3.rmeta --extern digest=/home/ubuntu/ore/target/release/deps/libdigest-4a9ace02b0ebd513.rmeta --extern hmac_drbg=/home/ubuntu/ore/target/release/deps/libhmac_drbg-55602394ae6ad488.rmeta --extern libsecp256k1_core=/home/ubuntu/ore/target/release/deps/liblibsecp256k1_core-314b0e128e801d67.rmeta --extern rand=/home/ubuntu/ore/target/release/deps/librand-6b546257bc4651e3.rmeta --extern serde=/home/ubuntu/ore/target/release/deps/libserde-f4f893e16f040e24.rmeta --extern sha2=/home/ubuntu/ore/target/release/deps/libsha2-0073a77502ff038c.rmeta --extern typenum=/home/ubuntu/ore/target/release/deps/libtypenum-d30a3e4cef509948.rmeta --cap-lints allow (signal: 9, SIGKILL: kill)

Transaction did not land

Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Confirms: [None, None, None, None]
Transaction did not land

Account could not be parsed

For first launch got error

$ ore balance
Error { request: None, kind: RpcError(ForUser("Account could not be parsed as token account: pubkey=6....")) }

panic error

thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ore-cli-0.4.0/src/mine.rs:89:26:
Transaction failed: Error { request: None, kind: Custom("Sim failed") }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Does mining work?

The fact is that I have 3 instances running, but none of them have mined anything.

I'm sure:

  1. I have SOL to pay fees
  2. Accounts have initialized the SPL token

Maybe it's because I'm using Alchemy RPC and not the standard sol mainnet?

Panic at `register.rs:22:14` with `{ request: None, kind: Custom("Sim failed") }`

❯ ore \                                   
    --rpc https://api.mainnet-beta.solana.com \
    --keypair ~/.config/solana/id.json \
    --priority-fee 1 \
    mine \
    --threads 4
Generating challenge...
thread 'main' panicked at /Users/-/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ore-cli-0.4.0/src/register.rs:22:14:
Transaction failed: Error { request: None, kind: Custom("Sim failed") }
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   2: core::result::unwrap_failed
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
   3: ore::main::{{closure}}
   4: tokio::runtime::park::CachedParkThread::block_on
   5: tokio::runtime::context::runtime::enter_runtime
   6: tokio::runtime::runtime::Runtime::block_on
   7: ore::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

account err

Program Logs
Hide details
#1 Ore Mining Program instruction

Program[ Ore Mining Program ]consumed 2235 of 200000 compute units
Program returned error: Invalid account owner

can't submit hash

After the mining finally starts up, I get:

Balance: Err ORE
Claimable: 0 ORE
Reward rate: 0.000295595 ORE

Mining for a valid hash...
1112ezd5yoxXhQd3B2oYJZyTpJkc3HPZ3HsLH5MqN1Eo

Submitting hash for validation...
thread 'main' panicked at src/utils.rs:18:10:
Failed to get treasury account: Error { request: None, kind: RpcError(ForUser("AccountNotFound: pubkey=xxxxxx: HTTP status server error (503 Service Unavailable) for url (https://go.getblock.io/xxxxxx)")) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It seems like the balance is wrong to start with and then once it finds a hash it throws

Request for Assistance and Clarification: Seeking Guidance on Project Understanding and Community Interaction

Hello everyone,

I'm new to the world of open-source and blockchain mining. While searching for a project to contribute to, I stumbled upon a rising project. However, since it's a new project, I couldn't find many resources or a community to learn from. As a newcomer, I understand that having a clear understanding of the project's structure and processes is essential for making meaningful contributions. Unfortunately, I haven't been able to find adequate resources or an online community where I can seek guidance and clarification.

Could you please explain what this project does and how it interacts with other projects? It would be great to have a better understanding of it.

STUDY

OBE OPEN THE HOOK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.