diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-30 19:09:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-30 19:09:04 +0800 |
commit | 8ddd4c4c52eef9f382a321fa880adba4a1e35ee2 (patch) | |
tree | 0d9940dc0d58bad1a07e5bb41a69c3aedd6b199b /ethchain/state_manager.go | |
parent | 5a86892ecbd68c3d466cb1ef282c4cb81300abce (diff) | |
download | go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.gz go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.bz2 go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.lz go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.xz go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.tar.zst go-tangerine-8ddd4c4c52eef9f382a321fa880adba4a1e35ee2.zip |
wip
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 312ba3084..48c6401e3 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -3,6 +3,7 @@ package ethchain import ( "bytes" "container/list" + "fmt" "github.com/ethereum/eth-go/ethlog" "github.com/ethereum/eth-go/ethutil" "github.com/ethereum/eth-go/ethwire" @@ -200,7 +201,7 @@ func (sm *StateManager) Process(block *Block, dontReact bool) (err error) { } if !block.State().Cmp(state) { - statelogger.Errorf("Invalid merkle root.\nrec: %x\nis: %x", block.State().trie.Root, state.trie.Root) + err = fmt.Errorf("Invalid merkle root.\nrec: %x\nis: %x", block.State().trie.Root, state.trie.Root) return } |