mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
vm: introduce MaxArraySize constant
This is both for #373 and for interop functions that have to check some inputs.
This commit is contained in:
parent
cfa0c13322
commit
a357d99624
1 changed files with 4 additions and 2 deletions
|
@ -24,6 +24,8 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// MaxArraySize is the maximum array size allowed in the VM.
|
||||||
|
MaxArraySize = 1024
|
||||||
maxSHLArg = 256
|
maxSHLArg = 256
|
||||||
minSHLArg = -256
|
minSHLArg = -256
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue