github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/config/limits/limits.go (about) 1 /* 2 Package limits contains a number of system-wide hardcoded constants. 3 Many of the Neo protocol parameters can be adjusted by the configuration, but 4 some can not and this package contains hardcoded limits that are relevant for 5 many applications. 6 */ 7 package limits 8 9 const ( 10 // MaxStorageKeyLen is the maximum length of a key for storage items. 11 // Contracts can't use keys longer than that in their requests to the DB. 12 MaxStorageKeyLen = 64 13 // MaxStorageValueLen is the maximum length of a value for storage items. 14 // It is set to be the maximum value for uint16, contracts can't put 15 // values longer than that into the DB. 16 MaxStorageValueLen = 65535 17 )