tonyke-bot / ore-miner

ORE Miner built on top of Jito bundle with both CPU and GPU support.
457 stars 211 forks source link

number of keys must be a multiple of 25 #3

Closed fuhua898 closed 3 months ago

fuhua898 commented 3 months ago

thread 'main' panicked at src\bundle_mine_gpu.rs:66:13: number of keys must be a multiple of 25 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Does this mean I have to have 25 different wallet key files under the directory for it to run successfully?or can I change this run count from somewhere

tonyke-bot commented 3 months ago

yes, you have to use 25*n wallets

rluisr commented 3 months ago

Why do we need 25 wallets? This is a rudimentary question, but I am not familiar with Solana or ORE, so could you please tell me?

tonyke-bot commented 3 months ago

Due to the transaction size limit of Solana, a transaction can at most include 5 mine instructions. Jito provides bundle service and it allows users to bundle up to 5 transactions to be either all included or not included(dropped).

So 5*5=25 is a batch size of accounts in a round of mining.

rluisr commented 3 months ago

Thank you for answering this ridiculous question. I understand now! Thanks again!

tonyke-bot commented 3 months ago

Also, tip is paid for each bundle so filling up the bundles with as many transactions as possible is to increase the efficiency of the tip

rluisr commented 3 months ago

Sorry for the repetitiveness. Please let me know if you don't mind. I have 25 wallets and have deposited 0.1 SOL in each wallet.

When I run the register command I see an error indicating an insufficient balance. How much should I have in each wallet?

cargo run --release -- --rpc masked --priority-fee 500000 register --key-folder /root/id_json
    Finished `release` profile [optimized + debuginfo] target(s) in 0.43s
     Running `target/release/ore-miner --rpc 'masked' --priority-fee 500000 register --key-folder /root/id_json`
[2024-04-14T13:27:42Z INFO  ore_miner::register] registering 24 accounts
[2024-04-14T13:27:44Z ERROR ore_miner::register] fail to simulate transaction: Error processing Instruction 4: custom program error: 0x1
rluisr commented 3 months ago

I found the cause of this. A simple transfer failure resulted in the SOL not being deposited in the wallet.