AbsorbingChaos / stx-miner-script

Script and tips to setup a Blockstack Testnet Miner
https://stacks101.com
MIT License
8 stars 7 forks source link

Stacks 2.0 Xenon Update #46

Open ParkWardRR opened 3 years ago

ParkWardRR commented 3 years ago

Hi - Is there any progress to adding/updating to Xenon? If someone can share the differences from the lists found in the readme, I'd be happy to branch.

  1. Install or update operating system prerequisites build-essential cmake libssl-dev pkg-config jq git bc
  2. Detect or install node version manager (nvm)
  3. Detect or install Node.js (via nvm)
  4. Detect or install Rust (via rustup.rs)
  5. Download or update the stacks-blockchain repository (via git)
  6. Check out the 24.0.0.0-xenon tagged release for Krypton (via git)
  7. Detect or create the keychain file (via blockstack-cli make_keychain)
  8. Detect or request test BTC balance (via keychain file and faucet)
  9. Detect or download miner configuration file (via GitHub)
  10. If downloaded, automatically inserts the private key (via keychain file)
  11. Check test BTC balance before starting the miner process
  12. Start the miner and try to win the sortitions!
whoabuddy commented 3 years ago

Xenon requires running a local instance of bitcoind along with the stacks-node, but I do have some updates staged from testing out a miner myself.

The script would need a similar check both that bitcoind exists and that it could be started correctly.

Itd be nice to pull the rpc user/pass from the conf file for formatting bitcoin-cli commands, too. That way balance can still be checked before starting the miner.

I'm happy to upload what I have if you wanted to try and take it from there?

ParkWardRR commented 3 years ago

Hey, that's great! Share what you have and I'll attempt to make some progress.

whoabuddy commented 3 years ago

I merged some new stuff the day before you commented in #47 , including:

I haven't written up any of the logic in the script yet, and I'm open to input to on how everything is structured. As this thing grows it's gonna need some cleaner code.