mpt: change MaxKeyLength for LeafNode

This commit is contained in:
Anna Shaleva 2021-03-31 12:44:15 +03:00
parent 7f038bd465
commit 8c358aa556

View file

@ -6,12 +6,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"
)
// MaxKeyLength is the max length of the extension node key.
const MaxKeyLength = 1125
const MaxKeyLength = (storage.MaxStorageKeyLen + 4) * 2
// ExtensionNode represents MPT's extension node.
type ExtensionNode struct {