Feature - Parallel mining transactions
mathias7799 opened this issue · 3 comments
I cannot write rust, but i was thinking about how to make the process more efficient.
- Mining happens in its own thread and hashes that match gets saved in memory/list
- A seperate process that handles the send transaction and get signature events.
- 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.
it'not work if only one account because the hash depend on contract value,you can just run some termal in background.
try this optimize program. it can auto claim to your input address
https://github.com/liangxiwei/ore-mine-optimize-mac
@liangxiwei yea no. That's very sketchy that you prepackage the whole cli.
Why not make the changes in a pull request to keep the opensource nature of the code?
But seriously, I'll never try that pre-packaged binary
@mathias7799 I'm working on set of bash tools that orchestrate spinning up as many accounts as you like so that you can run many miners at once. It's still a work in progress, but I've got the setup code working. If you want to alpha test that, you can look here: https://github.com/Algorhythmic1/ore-cli/tree/bash_helpers. It defaults to the number of processors your PC has minus two, so your PC can still function. It calculates what you'll need so that each account has at least 0.025 SOL, asks you to send it to one account, and then automatically distributes it across all the others.
Importantly right now, the script automatically puts you on devnet with line 3 solana config set -u devnet. If you remove that line you'd be sending real SOL. I want to do some more testing before we remove that for good, so proceed at your own risk.
What it needs next, which I'm also working on, is a way to smoothly kick off all your miners, check balances, collect your ore, stop the miners, change RPCs, etc. That'll be a separate bash script "ore_miner_controller.sh". Anyway, check it out and let me know your thoughts.
Happy to take feedback on whether this is even the ideal approach.