aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-01 05:26:52 +0800
committerobscuren <geffobscura@gmail.com>2014-10-01 05:26:52 +0800
commit3af211dd65d6690afce9976a9f47ab1cdddb8d58 (patch)
tree2fbfade2d934d5c41a0e3bec449d1b23dea3b0ae /ethchain
parentab6ede51d7fedb9270cab08ee732a834be34dab2 (diff)
downloaddexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.gz
dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.zst
dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.zip
Implemented WebSocket package
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state_transition.go14
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 {