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.
This commit is contained in:
parent
4bbe863904
commit
b7f89b0544
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue