diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-01 02:03:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-01 02:03:31 +0800 |
commit | ed276cd7c241749a9cf8add4e2fae3d3608a7ea4 (patch) | |
tree | 40416177aeac9874e0eecdb7194db9bc13e39174 /ethchain/state_manager.go | |
parent | 82272ee08a7d72be1cc0947b6a0e8096a0353362 (diff) | |
download | dexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.gz dexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.zst dexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.zip |
Added Paranoia check for VM execution
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 48c6401e3..363aa3da7 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -123,7 +123,8 @@ done: break done default: - statelogger.Infoln(err) + //statelogger.Infoln(err) + return nil, nil, nil, err } } @@ -236,7 +237,10 @@ func (sm *StateManager) ApplyDiff(state *State, parent, block *Block) (receipts coinbase.SetGasPool(block.CalcGasLimit(parent)) // Process the transactions on to current block - receipts, _, _, _ = sm.ProcessTransactions(coinbase, state, block, parent, block.Transactions()) + receipts, _, _, err = sm.ProcessTransactions(coinbase, state, block, parent, block.Transactions()) + if err != nil { + return nil, err + } return receipts, nil } |