aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-30 01:38:05 +0800
committerFelix Lange <fjl@twurst.com>2014-10-30 01:38:05 +0800
commitd9bccdde234f2493722d8fadfffecc5ef2e27b9b (patch)
tree7f492a2a6faaf4639dfa5a71cbcaf75646d6f655
parent051af604e2f076e131875d558b052a4e4d1bf713 (diff)
downloaddexon-d9bccdde234f2493722d8fadfffecc5ef2e27b9b.tar.gz
dexon-d9bccdde234f2493722d8fadfffecc5ef2e27b9b.tar.zst
dexon-d9bccdde234f2493722d8fadfffecc5ef2e27b9b.zip
ethchain: fix tests
Adapted to recent BlockChain -> ChainManager rename.
-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