Merge pull request #1277 from nspcc-dev/restrict-verification-call-flags

core: restrict verification scripts with CallFlags.None
This commit is contained in:
Roman Khimov 2020-08-06 13:52:14 +03:00 committed by GitHub
commit 5e53aceb0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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