aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
commit53b5a45856c5d4c307dc55b4ae1b46efd9471142 (patch)
tree56eb1f936610cc461742d2bb08431e304870e85a /eth/backend.go
parentb0aaa77f0213cb525a873c3bea92e8a06cff423f (diff)
parent313fe3861b3c338b3b6304adac46c86af7e2d52e (diff)
downloadgo-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.gz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.bz2
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.lz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.xz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.zst
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.zip
Merge branch 'xcthulhu-publictests' into poc-9
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 0de0fcf4a..50fb70720 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -7,6 +7,7 @@ import (
"path"
"strings"
+ "github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/blockpool"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
@@ -179,11 +180,13 @@ func New(config *Config) (*Ethereum, error) {
}
eth.chainManager = core.NewChainManager(db, eth.EventMux())
+ pow := ethash.New(eth.chainManager)
+
eth.txPool = core.NewTxPool(eth.EventMux())
- eth.blockProcessor = core.NewBlockProcessor(db, eth.txPool, eth.chainManager, eth.EventMux())
+ eth.blockProcessor = core.NewBlockProcessor(db, pow, eth.txPool, eth.chainManager, eth.EventMux())
eth.chainManager.SetProcessor(eth.blockProcessor)
eth.whisper = whisper.New()
- eth.miner = miner.New(keyManager.Address(), eth, config.MinerThreads)
+ eth.miner = miner.New(keyManager.Address(), eth, pow, config.MinerThreads)
hasBlock := eth.chainManager.HasBlock
insertChain := eth.chainManager.InsertChain