aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 02:48:38 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 02:48:38 +0800
commit81ec564ef61a6dcd06cfdd98a515d366aaac719f (patch)
treeb75cc909fd773e840c274444f39f1b60f00afd23 /ethchain
parent9e2f071d26d5c4ed343d2a91e48fec4e7751b99d (diff)
parent4cf69d7cd34394fa7408bb5a6e152610a9daa81c (diff)
downloaddexon-81ec564ef61a6dcd06cfdd98a515d366aaac719f.tar.gz
dexon-81ec564ef61a6dcd06cfdd98a515d366aaac719f.tar.zst
dexon-81ec564ef61a6dcd06cfdd98a515d366aaac719f.zip
Merge pull request #168 from fjl/feature/working-tests
Fix the tests
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/helper_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/helper_test.go b/ethchain/helper_test.go
index e4aef67d0..a863c7541 100644
--- a/ethchain/helper_test.go
+++ b/ethchain/helper_test.go
@@ -18,7 +18,7 @@ type TestManager struct {
db ethutil.Database
txPool *TxPool
- blockChain *BlockChain
+ blockChain *ChainManager
Blocks []*Block
}
@@ -38,7 +38,7 @@ func (s *TestManager) Peers() *list.List {
return list.New()
}
-func (s *TestManager) BlockChain() *BlockChain {
+func (s *TestManager) ChainManager() *ChainManager {
return s.blockChain
}
@@ -82,7 +82,7 @@ func NewTestManager() *TestManager {
testManager.eventMux = new(event.TypeMux)
testManager.db = db
testManager.txPool = NewTxPool(testManager)
- testManager.blockChain = NewBlockChain(testManager)
+ testManager.blockChain = NewChainManager(testManager)
testManager.stateManager = NewStateManager(testManager)
// Start the tx pool