Skip to content

Commit 4f84597

Browse files
committed
Increase input size limit from 64 KB to 2 MB
1 parent a4ba7e9 commit 4f84597

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/common-birds-wear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cartesi/rollups": minor
3+
---
4+
5+
Increase input size limit from 64 KB to 2 MB

src/common/CanonicalMachine.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ pragma solidity ^0.8.8;
88
/// @notice Defines several constants related to the reference implementation
99
/// of the RISC-V machine that runs Linux, also known as the "Cartesi Machine".
1010
library CanonicalMachine {
11-
/// @notice Maximum input size (64 kilobytes).
12-
uint256 constant INPUT_MAX_SIZE = 1 << 16;
11+
/// @notice Maximum input size (2 megabytes).
12+
uint256 constant INPUT_MAX_SIZE = 1 << 21;
1313

1414
/// @notice Log2 of maximum number of outputs.
1515
uint256 constant LOG2_MAX_OUTPUTS = 63;

0 commit comments

Comments
 (0)