ethereumproject / go-ethereum

Go language implementation of the original/classic design of the Ethereum protocol
GNU Lesser General Public License v3.0
441 stars 166 forks source link

Can evm change the account code? #696

Closed b00f closed 5 years ago

b00f commented 5 years ago

As I know the account code should not be changeable after creation. However I found a piece of code that is a bit strange for me: https://github.com/ethereumproject/go-ethereum/blob/1a8b71b8f3e03775303182df7f446a93234ef89c/core/multivm_processor.go#L156

Why an account's code should change here?