forked from TrueCloudLab/neoneo-go
interop: add contract storage limits
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>
This commit is contained in:
parent
fd7b7ffc13
commit
b35f351f0b
1 changed files with 12 additions and 0 deletions
12
pkg/interop/storage/limits.go
Normal file
12
pkg/interop/storage/limits.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
)
|
Loading…
Reference in a new issue