mpt: increase max leaf value length

This commit is contained in:
Anna Shaleva 2021-03-30 16:51:08 +03:00
parent f0c222b385
commit 6e836d325e

View file

@ -5,12 +5,13 @@ import (
"errors"
"fmt"
"github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
)
// MaxValueLength is a max length of a leaf node value.
const MaxValueLength = 1024 * 1024
const MaxValueLength = 3 + storage.MaxStorageValueLen + 1
// LeafNode represents MPT's leaf node.
type LeafNode struct {