diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-30 02:48:38 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-30 02:48:38 +0800 |
commit | 81ec564ef61a6dcd06cfdd98a515d366aaac719f (patch) | |
tree | b75cc909fd773e840c274444f39f1b60f00afd23 /ethchain | |
parent | 9e2f071d26d5c4ed343d2a91e48fec4e7751b99d (diff) | |
parent | 4cf69d7cd34394fa7408bb5a6e152610a9daa81c (diff) | |
download | dexon-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.go | 6 |
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 |