From b7f89b054468ed56b917b032d10dfe65a7b2d779 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 5 Aug 2020 19:17:48 +0300 Subject: [PATCH] core: restrict verification scripts with CallFlags.None Follow neo-project/neo#1776. Looks very suspicious to me as it severely limits verification scripts, but we have to be compatible at this point. --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 246dc2fa1..f95c5448e 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -1463,7 +1463,7 @@ func (bc *Blockchain) verifyHashAgainstScript(hash util.Uint160, witness *transa vm := interopCtx.SpawnVM() vm.SetPriceGetter(getPrice) vm.GasLimit = gas - vm.LoadScriptWithFlags(verification, smartcontract.ReadOnly) + vm.LoadScriptWithFlags(verification, smartcontract.NoneFlag) vm.LoadScript(witness.InvocationScript) if useKeys { bc.keyCacheLock.RLock()