aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers_test.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 /core/chain_makers_test.go
parent3b00a77de57ab2737a7887521c192ce004c721e3 (diff)
downloaddexon-567d41d9363706b4b13ce0903804e8acf214af49.tar
dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.gz
dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.bz2
dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.lz
dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.xz
dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.zst
dexon-567d41d9363706b4b13ce0903804e8acf214af49.zip
all: swap out the C++ ethash to the pure Go one (mining todo)
Diffstat (limited to 'core/chain_makers_test.go')
-rw-r--r--core/chain_makers_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go
index 5c563de46..82751553f 100644
--- a/core/chain_makers_test.go
+++ b/core/chain_makers_test.go
@@ -26,6 +26,7 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/params"
+ "github.com/ethereum/go-ethereum/pow"
)
func ExampleGenerateChain() {
@@ -82,7 +83,7 @@ func ExampleGenerateChain() {
// Import the chain. This runs all block validation rules.
evmux := &event.TypeMux{}
- blockchain, _ := NewBlockChain(db, chainConfig, FakePow{}, evmux, vm.Config{})
+ blockchain, _ := NewBlockChain(db, chainConfig, pow.FakePow{}, evmux, vm.Config{})
if i, err := blockchain.InsertChain(chain); err != nil {
fmt.Printf("insert error (block %d): %v\n", chain[i].NumberU64(), err)
return