Skip to content

Commit

Permalink
core,tests: Fix ethereum#15119, don't create account in state_transition
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 19, 2017
1 parent a92d8a2 commit fcfe63a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ func (st *StateTransition) to() vm.AccountRef {
}

reference := vm.AccountRef(*to)
if !st.state.Exist(*to) {
st.state.CreateAccount(*to)
}
return reference
}

Expand Down
8 changes: 1 addition & 7 deletions tests/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ func TestState(t *testing.T) {
st.fails(`^stRevertTest/RevertPrefoundEmptyOOG\.json/EIP158`, "bug in test")
st.fails(`^stRevertTest/RevertPrecompiledTouch\.json/Byzantium`, "bug in test")
st.fails(`^stRevertTest/RevertPrefoundEmptyOOG\.json/Byzantium`, "bug in test")
st.fails( `^stRandom/randomStatetest645\.json/EIP150/.*`, "known bug #15119")
st.fails( `^stRandom/randomStatetest645\.json/Frontier/.*`, "known bug #15119")
st.fails( `^stRandom/randomStatetest645\.json/Homestead/.*`, "known bug #15119")
st.fails( `^stRandom/randomStatetest644\.json/EIP150/.*`, "known bug #15119")
st.fails( `^stRandom/randomStatetest644\.json/Frontier/.*`, "known bug #15119")
st.fails( `^stRandom/randomStatetest644\.json/Homestead/.*`, "known bug #15119")


st.walk(t, stateTestDir, func(t *testing.T, name string, test *StateTest) {
Expand Down Expand Up @@ -76,7 +70,7 @@ func withTrace(t *testing.T, gasLimit uint64, test func(vm.Config) error) {
}
t.Error(err)
if gasLimit > traceErrorLimit {
t.Log("gas limit too high for EVM trace")
//t.Log("gas limit too high for EVM trace")
return
}
tracer := vm.NewStructLogger(nil)
Expand Down

0 comments on commit fcfe63a

Please sign in to comment.