diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-07 17:17:48 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-07 17:17:48 +0800 |
commit | 68fba4b781652c0181ca58cf176e96a303acffe4 (patch) | |
tree | 54c5b38fd946e329a931599603436549152faf0a /ethchain | |
parent | 239a5d3230f29e1309ef9f00aa19a1e4f537afd4 (diff) | |
download | dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar.gz dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar.bz2 dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar.lz dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar.xz dexon-68fba4b781652c0181ca58cf176e96a303acffe4.tar.zst dexon-68fba4b781652c0181ca58cf176e96a303acffe4.zip |
Fixed state reset on err
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_transition.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index a92aa4a33..10a795cb8 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -176,8 +176,6 @@ func (self *StateTransition) TransitionState() (err error) { return } - snapshot := self.state.Copy() - receiver = self.Receiver() // If the receiver is nil it's a contract (\0*32). @@ -194,6 +192,8 @@ func (self *StateTransition) TransitionState() (err error) { return } + snapshot := self.state.Copy() + // Process the init code and create 'valid' contract if IsContractAddr(self.receiver) { // Evaluate the initialization script |