diff --git a/pkg/core/interops.go b/pkg/core/interops.go index aa64a714c..b8d78bca6 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -106,17 +106,17 @@ var systemInterops = []interop.Function{ {Name: "System.Iterator.Values", Func: iterator.Values, Price: 400}, {Name: "System.Json.Deserialize", Func: json.Deserialize, Price: 500000}, {Name: "System.Json.Serialize", Func: json.Serialize, Price: 100000}, - {Name: "System.Runtime.CheckWitness", Func: runtime.CheckWitness, Price: 200, RequiredFlags: smartcontract.AllowStates}, + {Name: "System.Runtime.CheckWitness", Func: runtime.CheckWitness, Price: 30000}, {Name: "System.Runtime.GetCallingScriptHash", Func: engineGetCallingScriptHash, Price: 400}, {Name: "System.Runtime.GetEntryScriptHash", Func: engineGetEntryScriptHash, Price: 400}, {Name: "System.Runtime.GetExecutingScriptHash", Func: engineGetExecutingScriptHash, Price: 400}, {Name: "System.Runtime.GetScriptContainer", Func: engineGetScriptContainer, Price: 250}, - {Name: "System.Runtime.GetTime", Func: runtimeGetTime, Price: 1, - AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Runtime.GetTrigger", Func: runtimeGetTrigger, Price: 1}, - {Name: "System.Runtime.Log", Func: runtimeLog, Price: 1, RequiredFlags: smartcontract.AllowNotify}, - {Name: "System.Runtime.Notify", Func: runtimeNotify, Price: 1, RequiredFlags: smartcontract.AllowNotify}, - {Name: "System.Runtime.Platform", Func: runtimePlatform, Price: 1}, + {Name: "System.Runtime.GetTime", Func: runtimeGetTime, Price: 250, + AllowedTriggers: trigger.Application}, + {Name: "System.Runtime.GetTrigger", Func: runtimeGetTrigger, Price: 250}, + {Name: "System.Runtime.Log", Func: runtimeLog, Price: 1000000, RequiredFlags: smartcontract.AllowNotify}, + {Name: "System.Runtime.Notify", Func: runtimeNotify, Price: 1000000, RequiredFlags: smartcontract.AllowNotify}, + {Name: "System.Runtime.Platform", Func: runtimePlatform, Price: 250}, {Name: "System.Storage.Delete", Func: storageDelete, Price: StoragePrice, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates}, {Name: "System.Storage.Find", Func: storageFind, Price: 1000000,