diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
commit | 3af211dd65d6690afce9976a9f47ab1cdddb8d58 (patch) | |
tree | 2fbfade2d934d5c41a0e3bec449d1b23dea3b0ae /ethchain | |
parent | ab6ede51d7fedb9270cab08ee732a834be34dab2 (diff) | |
download | dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.gz dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.zst dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.zip |
Implemented WebSocket package
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_transition.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index c1180a641..096464963 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -142,14 +142,12 @@ func (self *StateTransition) preCheck() (err error) { func (self *StateTransition) TransitionState() (err error) { statelogger.Debugf("(~) %x\n", self.tx.Hash()) - /* - defer func() { - if r := recover(); r != nil { - logger.Infoln(r) - err = fmt.Errorf("state transition err %v", r) - } - }() - */ + defer func() { + if r := recover(); r != nil { + statelogger.Infoln(r) + err = fmt.Errorf("state transition err %v", r) + } + }() // XXX Transactions after this point are considered valid. if err = self.preCheck(); err != nil { |