mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 10:03:47 +00:00
Fixed state reset on err
This commit is contained in:
parent
239a5d3230
commit
68fba4b781
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue