Skip to content

Commit f9a7761

Browse files
committed
Update
1 parent c8ec918 commit f9a7761

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/eth-json-rpc-middleware/src/utils/validation.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,12 @@ const ALLOWED_TRANSACTION_PARAM_KEYS = new Set<string>(
271271
Object.keys(TransactionParamsStruct.schema as Record<string, unknown>),
272272
);
273273

274-
export const MAX_TRANSACTION_PARAMS_SIZE_BYTES = 128 * 1024;
274+
// Upper bound derived from the largest valid eth_sendTransaction payload:
275+
// EIP-3860 caps initcode at 49,152 bytes → hex-encoded in 'data' field ≈ 98 KB of JSON.
276+
// 200 KB is ~2× that ceiling, giving clear headroom above any protocol-legal
277+
// transaction while blocking the padding attacks this cap defends against.
278+
// TODO(CONF-1662): tighten once P99 production data is available.
279+
export const MAX_TRANSACTION_PARAMS_SIZE_BYTES = 200 * 1024;
275280

276281
/**
277282
* Validates `eth_sendTransaction` / `eth_signTransaction` params against the

0 commit comments

Comments
 (0)