From f77a775e61b73aaaeccc85c1864c38bb2df0a39c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 24 May 2022 17:45:23 +0300 Subject: [PATCH] core: raise System.Runtime.GetNotifications fee Fix DoS, follow neo-project/neo#2748. --- pkg/core/interops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interops.go b/pkg/core/interops.go index 308fba7fd..b3efb8032 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -52,7 +52,7 @@ var systemInterops = []interop.Function{ {Name: interopnames.SystemRuntimeGetExecutingScriptHash, Func: runtime.GetExecutingScriptHash, Price: 1 << 4}, {Name: interopnames.SystemRuntimeGetInvocationCounter, Func: runtime.GetInvocationCounter, Price: 1 << 4}, {Name: interopnames.SystemRuntimeGetNetwork, Func: runtime.GetNetwork, Price: 1 << 3}, - {Name: interopnames.SystemRuntimeGetNotifications, Func: runtime.GetNotifications, Price: 1 << 8, ParamCount: 1}, + {Name: interopnames.SystemRuntimeGetNotifications, Func: runtime.GetNotifications, Price: 1 << 12, ParamCount: 1}, {Name: interopnames.SystemRuntimeGetRandom, Func: runtime.GetRandom, Price: 1 << 4}, {Name: interopnames.SystemRuntimeGetScriptContainer, Func: engineGetScriptContainer, Price: 1 << 3}, {Name: interopnames.SystemRuntimeGetTime, Func: runtime.GetTime, Price: 1 << 3, RequiredFlags: callflag.ReadStates},