diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 00:55:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 00:55:23 +0800 |
commit | 313fe3861b3c338b3b6304adac46c86af7e2d52e (patch) | |
tree | e19ace3d9fd0b8f8fe67e5f0fb934cfd407b5664 /core/block_processor.go | |
parent | 22b132e28f74cabef38a55874da8e3db93786144 (diff) | |
download | go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.gz go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.zst go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.zip |
fixed pow stuff
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 17256fe9c..f4a3cb8e3 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -7,7 +7,6 @@ import ( "sync" "time" - "github.com/ethereum/ethash" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/ethutil" "github.com/ethereum/go-ethereum/event" @@ -46,11 +45,11 @@ type BlockProcessor struct { eventMux *event.TypeMux } -func NewBlockProcessor(db ethutil.Database, txpool *TxPool, chainManager *ChainManager, eventMux *event.TypeMux) *BlockProcessor { +func NewBlockProcessor(db ethutil.Database, pow pow.PoW, txpool *TxPool, chainManager *ChainManager, eventMux *event.TypeMux) *BlockProcessor { sm := &BlockProcessor{ db: db, mem: make(map[string]*big.Int), - Pow: ethash.New(chainManager), + Pow: pow, bc: chainManager, eventMux: eventMux, txpool: txpool, |