Skip to content

Commit feff585

Browse files
authored
feat: merge-train/fairies (#24973)
See [merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md). This is a merge-train.
2 parents 76a1caf + 37b6092 commit feff585

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

yarn-project/foundation/src/json-rpc/client/safe_json_rpc_client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ const DEFAULT_BATCH_WINDOW_MS = 0;
1414
// the maximum size of a batched request
1515
const DEFAULT_MAX_BATCH_SIZE = 100;
1616

17-
// 10 mb
18-
const DEFAULT_MAX_REQUESTY_BODY_SIZE = 10 * 1024 * 1024;
17+
// 1 mb, matching the JSON-RPC server's default maxBodySizeBytes so the client never assembles a batch the
18+
// server rejects for exceeding the body limit
19+
const DEFAULT_MAX_REQUESTY_BODY_SIZE = 1 * 1024 * 1024;
1920

2021
export type SafeJsonRpcClientOptions = {
2122
namespaceMethods?: string | false;

0 commit comments

Comments
 (0)