miner

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2019 License: LGPL-3.0 Imports: 19 Imported by: 0

README

External CPU Miner Commandline Tool

How to run (from source):

# Build qkchash-related interfaces after checking out the repo
$ pwd  #-> root directory at `goquarkchain`
$ cd consensus/qkchash/native && make && cd -
$ cd cmd/miner
$ go run main.go -shards 5,6 -host <ip>
# Or build the binary
$ go build -o goqkcminer
$ ./goqkcminer -shards 5,6 -host <ip>

Commandline options:

$ goqkcminer -h
Usage of goqkcminer:
  -gethloglvl string
    	log level of geth (default "info")
  -host string
    	remote host of a quarkchain cluster (default "localhost")
  -port int
    	remote JSONRPC port of a quarkchain cluster (default 38391)
  -shards string
    	comma-separated string indicating shards
  -timeout int
    	timeout in seconds for RPC calls (default 10)

Misc:

  1. ethash is not supported, due to:
    1. Need to adapt the consensus engine interface from go-ethereum to our own consensus module, because in go-ethereum CPU mining is tightly coupled with the block format while we modified a lot of it. For double-SHA256 and qkchash mining it's solved by only using the header hash, difficulty and block height parameters. Check FindNonce method for more details
    2. Most people are running GPU for mining ethash right now, so supporting CPU mining doesn't really help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL