From c4de28938ff8c688c4444c8b3e8e28a52cbc62ff Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Wed, 22 Jun 2016 11:59:28 +0300 Subject: core: add voting and result tracking for the dao soft-fork --- core/execution.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/execution.go') 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 -- cgit