aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-16 21:25:33 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-16 21:25:33 +0800
commitd5327ddc5fdc2a8b967699ea06ef5b5503657123 (patch)
tree9872db19a62cb21fc68e7c3e27a8bf8b9fcc63bd /core
parentb74775400906cc582bdbb98bf5067c5258ee491f (diff)
parentec6a548ee3555813d83f86f82bd25694bfd9c303 (diff)
downloadgo-tangerine-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.gz
go-tangerine-d5327ddc5fdc2a8b967699ea06ef5b5503657123.tar.zst
go-tangerine-d5327ddc5fdc2a8b967699ea06ef5b5503657123.zip
Merge pull request #1869 from Gustav-Simonsson/gpu_miner
all: Add GPU mining, disabled by default
Diffstat (limited to 'core')
-rw-r--r--core/chain_makers.go2
-rw-r--r--core/chain_pow_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 4347d9173..dbe3adea7 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -32,7 +32,7 @@ import (
// It returns true from Verify for any block.
type FakePow struct{}
-func (f FakePow) Search(block pow.Block, stop <-chan struct{}) (uint64, []byte) {
+func (f FakePow) Search(block pow.Block, stop <-chan struct{}, index int) (uint64, []byte) {
return 0, nil
}
func (f FakePow) Verify(block pow.Block) bool { return true }
diff --git a/core/chain_pow_test.go b/core/chain_pow_test.go
index 80c6a1cc0..5aa8ed8a0 100644
--- a/core/chain_pow_test.go
+++ b/core/chain_pow_test.go
@@ -34,7 +34,7 @@ type failPow struct {
failing uint64
}
-func (pow failPow) Search(pow.Block, <-chan struct{}) (uint64, []byte) {
+func (pow failPow) Search(pow.Block, <-chan struct{}, int) (uint64, []byte) {
return 0, nil
}
func (pow failPow) Verify(block pow.Block) bool { return block.NumberU64() != pow.failing }
@@ -47,7 +47,7 @@ type delayedPow struct {
delay time.Duration
}
-func (pow delayedPow) Search(pow.Block, <-chan struct{}) (uint64, []byte) {
+func (pow delayedPow) Search(pow.Block, <-chan struct{}, int) (uint64, []byte) {
return 0, nil
}
func (pow delayedPow) Verify(block pow.Block) bool { time.Sleep(pow.delay); return true }