diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-16 21:25:33 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-16 21:25:33 +0800 |
commit | d5327ddc5fdc2a8b967699ea06ef5b5503657123 (patch) | |
tree | 9872db19a62cb21fc68e7c3e27a8bf8b9fcc63bd /pow | |
parent | b74775400906cc582bdbb98bf5067c5258ee491f (diff) | |
parent | ec6a548ee3555813d83f86f82bd25694bfd9c303 (diff) | |
download | dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.gz dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.bz2 dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.lz dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.xz dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.zst dexon-d5327ddc5fdc2a8b967699ea06ef5b5503657123.zip |
Merge pull request #1869 from Gustav-Simonsson/gpu_miner
all: Add GPU mining, disabled by default
Diffstat (limited to 'pow')
-rw-r--r-- | pow/ezp/pow.go | 2 | ||||
-rw-r--r-- | pow/pow.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pow/ezp/pow.go b/pow/ezp/pow.go index 03bb3da29..f7ae1cbf1 100644 --- a/pow/ezp/pow.go +++ b/pow/ezp/pow.go @@ -48,7 +48,7 @@ func (pow *EasyPow) Turbo(on bool) { pow.turbo = on } -func (pow *EasyPow) Search(block pow.Block, stop <-chan struct{}) (uint64, []byte) { +func (pow *EasyPow) Search(block pow.Block, stop <-chan struct{}, index int) (uint64, []byte) { r := rand.New(rand.NewSource(time.Now().UnixNano())) hash := block.HashNoNonce() diff := block.Difficulty() diff --git a/pow/pow.go b/pow/pow.go index 22daf35e4..592d96475 100644 --- a/pow/pow.go +++ b/pow/pow.go @@ -17,7 +17,7 @@ package pow type PoW interface { - Search(block Block, stop <-chan struct{}) (uint64, []byte) + Search(block Block, stop <-chan struct{}, index int) (uint64, []byte) Verify(block Block) bool GetHashrate() int64 Turbo(bool) |