diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-25 21:13:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-25 21:13:07 +0800 |
commit | 99fa9afaf15ceecffcc5b7051ffe9c7f0d179dec (patch) | |
tree | 323249a21559dfac8be59e61d0b8ea9c89d48c0a /ethchain/block_chain_test.go | |
parent | 281559d42712c2b2ae903cb893b2ddc82318307d (diff) | |
download | dexon-99fa9afaf15ceecffcc5b7051ffe9c7f0d179dec.tar.gz dexon-99fa9afaf15ceecffcc5b7051ffe9c7f0d179dec.tar.zst dexon-99fa9afaf15ceecffcc5b7051ffe9c7f0d179dec.zip |
Updated to work with the new config
Diffstat (limited to 'ethchain/block_chain_test.go')
-rw-r--r-- | ethchain/block_chain_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/block_chain_test.go b/ethchain/block_chain_test.go index 4e4bb9dd4..ecaf8ca89 100644 --- a/ethchain/block_chain_test.go +++ b/ethchain/block_chain_test.go @@ -50,7 +50,7 @@ func (tm *TestManager) Broadcast(msgType ethwire.MsgType, data []interface{}) { } func NewTestManager() *TestManager { - ethutil.ReadConfig(".ethtest", ethutil.LogStd) + ethutil.ReadConfig(".ethtest", ethutil.LogStd, "") db, err := ethdb.NewMemDatabase() if err != nil { @@ -74,7 +74,7 @@ func NewTestManager() *TestManager { func (tm *TestManager) AddFakeBlock(blk []byte) error { block := NewBlockFromBytes(blk) tm.Blocks = append(tm.Blocks, block) - err := tm.StateManager().ProcessBlock(tm.StateManager().CurrentState(), block, false) + err := tm.StateManager().Process(block, false) return err } func (tm *TestManager) CreateChain1() error { |