Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Enhance the limits #514

Merged
merged 3 commits into from
Oct 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Neo.VM/ExecutionEngineLimits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public sealed record ExecutionEngineLimits
/// <summary>
/// The maximum size of an item in the VM.
/// </summary>
public uint MaxItemSize { get; init; } = 1024 * 1024;
public uint MaxItemSize { get; init; } = ushort.MaxValue;
shargon marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// The largest comparable size. If a <see cref="Types.ByteString"/> or <see cref="Types.Struct"/> exceeds this size, comparison operations on it cannot be performed in the VM.
/// </summary>
public uint MaxComparableSize { get; init; } = 65536;
public uint MaxComparableSize { get; init; } = ushort.MaxValue;
shargon marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// The maximum number of frames in the invocation stack of the VM.
Expand Down