gitlab.com/aquachain/aquachain@v1.17.16-rc3.0.20221018032414-e3ddf1e1c055/Documentation/user-mining-guide/Mining.md (about) 1 # Mining 2 3 ## Hashrate Benchmarks 4 5 See `#hashrate-reports` channel for many more: [discord](https://discord.com/invite/J7jBhZf) 6 7 ## New Mining Software 8 9 There are many varieties of aquachain mining software. 10 11 As of this edit, latest is [aquaminer-gpu](https://github.com/aquachain/aquaminer-gpu) 12 13 Compiling is easy. 14 15 ``` 16 git clone --branch linux --recurse-submodules https://github.com/aquachain/aquaminer-gpu 17 cd aquaminer-gpu 18 make 19 ls bin/ 20 ``` 21 22 Running all the miners are generally the same. The `-F` flag and then the pool URL, or your node URL if solo mining. 23 24 ## Aquachain Miner Resources 25 26 - [Network Pool Status](https://aquacha.in/status/miners) 27 28 ## Pool mining 29 30 Choose a pool from those listed on [pool status](https://aquacha.in/status/miners) or [aquachain.github.io](https://aquachain.github.io/explorer/#/pool) 31 32 Run the miner with the correct flags, considering making a short script 33 34 `./aquaminer.exe -F http://<pooladdress>:8888/<address>/<worker>` 35 36 Here replace `<address>` with your wallet address and `<worker>` with any custom name for the CPU you are using with your address. Remember multiple workers can be used with a single wallet address and in this case all paid money will go to the same wallet. And swap `<pooladdress>` for the actual pool host. 37 38 For CPU, use `-t` flag for number of cpu (default all) 39 40 `./aquaminer.exe -F http://pool.aquachain-foundation.org:8888/<address>/<worker>` 41 42 For GPU, use `-d` flag to choose the OpenCL device number 43 ``` 44 pooladdr='http://pool.whatever:8888/<address>/<worker>' 45 ./aquacppminer-gpu -d 0 -F ${pooladdr} & 46 ./aquacppminer-gpu -d 1 -F ${pooladdr} & 47 ``` 48 Since these are now running in background, use something like "killall aquacppminer-gpu" to kill all the miners. 49 50 ### Pools 51 52 These are the currently known pools, edit to add more: [pools.json](https://github.com/aquachain/aquachain.github.io/blob/master/pools.json) 53 54 [aquachain explorer: pools](https://aquachain.github.io/explorer/#/pool) 55 56 [multipool status](https://info.aquacha.in/status/miners) 57 58 ## Solo mining: 59 60 - **Don't solo mine unless you can actually mine blocks once in a while, start at a pool** 61 62 - **Dont keep your keys on your RPC server** 63 64 - **Use the `-aquabase` flag to set coinbase with no private key on server** 65 66 Be sure to **wait and sync before mining**. It doesn't take long. 67 68 To reduce orphan blocks, also be sure to **have peers** and check a block explorer to see the current block number and hash. 69 70 Do not key any keys inside the "nokeys" directory. You can safely delete `aquaminingdata` and `nokeys` (make sure you dont keep keys in there!) 71 72 **Run your RPC server like so: `aquachain -rpc -rpcaddr 192.168.1.5 -datadir aquaminingdata -keystore nokeys -aquabase 0x3317e8405e75551ec7eeeb3508650e7b349665ff`** 73 74 Later, to spend and use the AQUA console, just double click aquachain. This way, you keep your keys safe (in the default keystore dir) and don't mix `datadir`, this can prevent RPC attacks. 75 76 Please see the many cases where people have lost their ETH because leaving RPC open for even one minute. 77 78 ### Solo farm 79 80 This assumes your AQUA node will be running from LAN 192.168.1.3, with other workers on the same lan. 81 82 WORKERS: `aquacppminer --solo -F http://192.168.1.3:8543/` 83 84 Also consider running a pool! [open-aquachain-pool](https://github.com/aquachain/open-aquachain-pool/blob/master/docs/TUTORIAL.md) 85 86 and see mining proxy: [aquachain-proxy](https://github.com/rplant8/aquachain-proxy) 87 88 **Coinbase** 89 90 This is the address that receives the block reward. The mining node does not need the key. 91 92 Use the `-aquabase` flag, or from console: 93 94 ``` 95 miner.setAquabase('0x.your address..') 96 ``` 97