Skip to content

Commit

Permalink
Turn MAX_MEM_EXPANSION_BYTES error into a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Sep 18, 2024
1 parent bad037c commit bcd291f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main_sm/fork_10/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline zkresult getFromMemory(Context &ctx, mpz_class &offset, mpz_class &length
// If length is too high this is due to an OOG that will stop processing; just pretend to have read nothing
if (length > ctx.rom.constants.MAX_MEM_EXPANSION_BYTES)
{
zklog.error("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
zklog.warning("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
return ZKR_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main_sm/fork_12/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline zkresult getFromMemory(Context &ctx, mpz_class &offset, mpz_class &length
// If length is too high this is due to an OOG that will stop processing; just pretend to have read nothing
if (length > ctx.rom.constants.MAX_MEM_EXPANSION_BYTES)
{
zklog.error("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
zklog.warning("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
return ZKR_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main_sm/fork_9/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline zkresult getFromMemory(Context &ctx, mpz_class &offset, mpz_class &length
// If length is too high this is due to an OOG that will stop processing; just pretend to have read nothing
if (length > ctx.rom.constants.MAX_MEM_EXPANSION_BYTES)
{
zklog.error("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
zklog.warning("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
return ZKR_SUCCESS;
}

Expand Down

0 comments on commit bcd291f

Please sign in to comment.