ethchain: fix tests

Adapted to recent BlockChain -> ChainManager rename.
This commit is contained in:
Felix Lange 2014-10-29 18:38:05 +01:00
parent 051af604e2
commit d9bccdde23

View File

@ -18,7 +18,7 @@ type TestManager struct {
db ethutil.Database db ethutil.Database
txPool *TxPool txPool *TxPool
blockChain *BlockChain blockChain *ChainManager
Blocks []*Block Blocks []*Block
} }
@ -38,7 +38,7 @@ func (s *TestManager) Peers() *list.List {
return list.New() return list.New()
} }
func (s *TestManager) BlockChain() *BlockChain { func (s *TestManager) ChainManager() *ChainManager {
return s.blockChain return s.blockChain
} }
@ -82,7 +82,7 @@ func NewTestManager() *TestManager {
testManager.eventMux = new(event.TypeMux) testManager.eventMux = new(event.TypeMux)
testManager.db = db testManager.db = db
testManager.txPool = NewTxPool(testManager) testManager.txPool = NewTxPool(testManager)
testManager.blockChain = NewBlockChain(testManager) testManager.blockChain = NewChainManager(testManager)
testManager.stateManager = NewStateManager(testManager) testManager.stateManager = NewStateManager(testManager)
// Start the tx pool // Start the tx pool