diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-27 01:39:38 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-27 01:39:38 +0800 |
commit | c18ea4de147cb81bf5563a5727172d4103658b92 (patch) | |
tree | 09ecb2fe54902855fcef4c1873d64cce4e28f399 /eth/backend.go | |
parent | 37e6870f64437a212fde383ab1538ad1e7e2acd9 (diff) | |
parent | 16ecda951b767800b4e09ad8e86e0866b05136be (diff) | |
download | dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar.gz dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar.bz2 dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar.lz dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar.xz dexon-c18ea4de147cb81bf5563a5727172d4103658b92.tar.zst dexon-c18ea4de147cb81bf5563a5727172d4103658b92.zip |
Merge branch 'blockpool2' of https://github.com/ethersphere/go-ethereum into ethersphere-blockpool2
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eth/backend.go b/eth/backend.go index 0e5d24429..f6cde5ccd 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -7,6 +7,7 @@ import ( "path" "strings" + "github.com/ethereum/go-ethereum/blockpool" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" @@ -117,7 +118,7 @@ type Ethereum struct { blockProcessor *core.BlockProcessor txPool *core.TxPool chainManager *core.ChainManager - blockPool *BlockPool + blockPool *blockpool.BlockPool whisper *whisper.Whisper net *p2p.Server @@ -185,7 +186,7 @@ func New(config *Config) (*Ethereum, error) { hasBlock := eth.chainManager.HasBlock insertChain := eth.chainManager.InsertChain - eth.blockPool = NewBlockPool(hasBlock, insertChain, ezp.Verify) + eth.blockPool = blockpool.New(hasBlock, insertChain, ezp.Verify) netprv, err := config.nodeKey() if err != nil { @@ -220,7 +221,7 @@ func (s *Ethereum) Name() string { return s.net.Name } func (s *Ethereum) ChainManager() *core.ChainManager { return s.chainManager } func (s *Ethereum) BlockProcessor() *core.BlockProcessor { return s.blockProcessor } func (s *Ethereum) TxPool() *core.TxPool { return s.txPool } -func (s *Ethereum) BlockPool() *BlockPool { return s.blockPool } +func (s *Ethereum) BlockPool() *blockpool.BlockPool { return s.blockPool } func (s *Ethereum) Whisper() *whisper.Whisper { return s.whisper } func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux } func (s *Ethereum) Db() ethutil.Database { return s.db } |