aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-06 02:00:01 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-09 22:50:14 +0800
commit567d41d9363706b4b13ce0903804e8acf214af49 (patch)
tree8c091f0385589074573df3f7964c99417c5950ee /eth/backend.go
parent3b00a77de57ab2737a7887521c192ce004c721e3 (diff)
downloadgo-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.gz
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.bz2
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.lz
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.xz
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.zst
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.zip
all: swap out the C++ ethash to the pure Go one (mining todo)
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 5a8b41f5d..024520b13 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -288,15 +288,15 @@ func CreatePoW(config *Config) (pow.PoW, error) {
switch {
case config.PowFake:
log.Warn("Ethash used in fake mode")
- return pow.PoW(core.FakePow{}), nil
+ return pow.FakePow{}, nil
case config.PowTest:
log.Warn("Ethash used in test mode")
- return ethash.NewForTesting()
+ return pow.NewTestEthash(), nil
case config.PowShared:
log.Warn("Ethash used in shared mode")
- return ethash.NewShared(), nil
+ return pow.NewSharedEthash(), nil
default:
- return ethash.New(), nil
+ return pow.NewFullEthash("", ""), nil
}
}