I am a totally newbie in minning, a got and old nvdia gpu, parity fully synced and ethminer installed, windows 10, created two accounts with parity, but i dont know how to mine with ethminer and how to attach the parity enode to it…
[Ethereum] How to mine with Ethminer with parity enode
enodeethminerparity
Related Solutions
Don't use cpp-ethereum, it's barely maintained. Use Genoil-ethereum for mining.
Enable stratum support with parity --stratum
, also make sure you set an author with --author <your-address>
and optionally change the --stratum-port
to anything you like (default 8008). Long example:
parity --author 0037a6b811ffeb6e072da21179d11b1406371c63 --stratum --stratum-interface=0.0.0.0 --stratum-port=9009
Then point your ethminer (genoil) to your localhost
at :8008
, i.e.,
ethminer -S 127.0.0.1:8008
Update as per comments: If your ethminer does not support -S
(stratum), you need to set the --rpccorsdomain localhost
to allow getwork mining via jsonrpc with -F 127.0.0.1:8545
.
Disclosure, I work for parity.
Please note the the github code I am sharing is forked from https://github.com/ethereum/cpp-ethereum and Version 1.3.0 of etherminer that actually can do CPU mining, which is implemented around 1 year ago. I did some small changes to build the project, please see https://github.com/avatar-lavventura/ethminer.
First, since it will create new DAG do on the home directory: rm -rf ~/.ethash
Dependencies:
Linux-based:
sudo apt-get install libleveldb-dev libcurl4-openssl-dev libmicrohttpd-dev libudev-dev cmake
macOS:
brew install leveldb libmicrohttpd
Install:
git clone --depth=1 https://github.com/avatar-lavventura/ethminer.git
cd ethminer
./scripts/install_deps.sh
Build:
cmake -H. -Bbuild
cd build/ethminer
make -j $(nproc)
$ pwd #binary of etherminer is located under /Users/user/ethminer/build/ethminer
/Users/user/ethminer/build/ethminer
$./ethminer --version
ethminer version 1.3.0 | Build: ETH_BUILD_PLATFORM/ETH_BUILD_TYPE
To Mine with your private Ethereum-chain:
Please note that geth
or Parity
should work on the background as connected to your private ethereum network.
This line will use full horse power:
./ethminer -F http://localhost:8545
-t, --mining-threads Limit number of CPU/GPU miners to n (default: use everything available on selected platform)
[~/ethminer]$ cd build/ethminer
[~/ethminer/build/ethminer]$ ./ethminer -F http://localhost:8545 --mining-threads 2
Helpful comments:
- Build process here but with GCC 9.3.0, needed to insert the code patches as noted here in github (https://github.com/ethereum/aleth/issues/5637) , using
cmake -DTESTS=OFF
Best Answer
You'll probably want to set the destination address (where the rewards go). If you have an address already, great. If you don't, then you can make one in Parity with:
You'll be asked for a password and be given an address. Once done, you should run parity and tell it to mine to that address when required. Supposing your address is
ff25a05f8be3d4c9c58d35bd32cdbe4edd6515e6
, then you would run:Once Parity is running and synced with the network, you can start your miner of choice. For genoil, command would be:
Where
-G
for GPU mining (opencl).Since 1.6, Parity offers Stratum protocol support (beta). This protocol has number of advantages compared to the JSON-RPC polling, which results in better hashrate and less node strain. To run parity with Stratum on, use
To utilize Stratum, miner also needs to be started in Stratum mode. For genoil, it will be