[release/1.4.8] core: add voting and result tracking for the dao soft-fork

(cherry picked from commit c4de28938f)
This commit is contained in:
Péter Szilágyi
2016-06-22 11:59:28 +03:00
parent a9c94cbf48
commit f31a3a251a
5 changed files with 436 additions and 20 deletions

View File

@ -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