vm: introduce MaxArraySize constant

This is both for #373 and for interop functions that have to check some
inputs.
This commit is contained in:
Roman Khimov 2019-10-03 15:58:52 +03:00
parent cfa0c13322
commit a357d99624

View file

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