mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
b35f351f0b
Users of NeoGo interop package may have a demand to use these limits for custom purposes, it would be nice to have them as constants. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
12 lines
410 B
Go
12 lines
410 B
Go
package storage
|
|
|
|
// Contract storage limits.
|
|
const (
|
|
// MaxKeyLen is the maximum length of a key for storage items.
|
|
// Contracts can't use keys longer than that in their requests to the DB.
|
|
MaxKeyLen = 64
|
|
// MaxValueLen is the maximum length of a value for storage items.
|
|
// It is set to be the maximum value for uint16, contracts can't put
|
|
// values longer than that into the DB.
|
|
MaxValueLen = 65535
|
|
)
|