diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-22 16:59:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-23 21:43:35 +0800 |
commit | c4de28938ff8c688c4444c8b3e8e28a52cbc62ff (patch) | |
tree | 200b60570c19a76c66261f13a4e0777c112b020f /core/execution.go | |
parent | 7a5b571c671e70e0e4807cf971c15e2d1e09d33d (diff) | |
download | dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar.gz dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar.bz2 dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar.lz dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar.xz dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.tar.zst dexon-c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.zip |
core: add voting and result tracking for the dao soft-fork
Diffstat (limited to 'core/execution.go')
-rw-r--r-- | core/execution.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/execution.go b/core/execution.go index ec04f6140..7f4c64758 100644 --- a/core/execution.go +++ b/core/execution.go @@ -149,6 +149,9 @@ func execDelegateCall(env vm.Environment, caller vm.ContractRef, originAddr, toA return nil, common.Address{}, vm.DepthError } + if value.Cmp(common.Big0) > 0 { + env.MarkCodeHash(env.Db().GetCodeHash(caller.Address())) + } snapshot := env.MakeSnapshot() var to vm.Account |