3

I'm trying to carry out some tests on Ethminer and was trying to run benchmarks on it before it starting returning a hashrate of 0, from what I've been able to tell this is becasuse the GPU I'm using dones't have enough RAM for the DAG.

Is it possible to create a private ethereum network using one the the Ethereum clients, like geth, and mine or benchmark using Ethminer on that network or will I run into the same issue of the size of the DAG stopping me?

1 Answer 1

0

On a private network you should be able to build the DAG.

I have a private ethereum blockchain with one GETH node and mining and it does build the dag and mine.

download geth and then use the following customgenesis.json file to launch a private network

{
 "coinbase"   : "0x0000000000000000000000000000000000000001",
 "difficulty" : "0x40000",
 "extraData"  : "",
 "gasLimit"   : "0x8000000",
 "nonce"      : "0x0000000000005442",
 "mixhash"    : 
 "0x0000000000000000000000000000000000000000000000000000000000000000",
 "parentHash" : 
 "0x0000000000000000000000000000000000000000000000000000000000000000",
 "timestamp"  : "0x00",
 "alloc": {},
 "config": {
    "chainId": 19,
    "homesteadBlock": 0,
    "eip155Block": 0,
    "eip158Block": 0
 }
}

assuming your on a linux/mac and have the above customgenesis.json file in the same folder as geth run the following command

geth --datadir=./mychaindata init customgenesis.json

for windows

geth.exe --datadir=/mychaindata init customgenesis.json

Once geth has written the customgenesis.json file and created the genesis block you can then run

(Linux)

geth --datadir=./mychaindata  

Download Ethminer

Etheminer can be found at https://www.cryptocompare.com/mining/guides/how-to-mine-ethereum/

It will download as cpp-ethminer.

Go through set-up wizard

Start Mining or do your benchmark test

1
  • I've tried this a few times, once I run the first geth command it seems to hang; should this take a lot of time? I've been looking at the geth docs and they mention Private Network Set-up would this also work or would you recommend the customegenesis.json for using with Ethminer? And on that am I able to just run ethminer -M -G or will I need additional command line options? (Edit: I apologize for the mass of questions)
    – Nevin
    Jan 6, 2018 at 1:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.