Skip to content

Commit cff1b8b

Browse files
committed
increased request body size
1 parent 437f013 commit cff1b8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/rest/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ impl<N: Network, C: ConsensusStorage<N>> Rest<N, C> {
199199
.layer(middleware::map_request(log_middleware))
200200
// Enable CORS.
201201
.layer(cors)
202-
// Cap the request body size at 512KiB.
203-
.layer(DefaultBodyLimit::max(512 * 1024))
202+
// Cap the request body size at 2MiB to match snarkVM V14's 768 KiB binary transaction limit
203+
// (JSON encoding of verifying-key arrays is typically 2-3x the binary size).
204+
.layer(DefaultBodyLimit::max(2 * 1024 * 1024))
204205
.layer(governor_layer)
205206
}
206207

0 commit comments

Comments
 (0)