From e1c65ae9d8fb3ce41470d35c532cef01b6206708 Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Fri, 28 Jun 2024 11:15:33 -0700 Subject: [PATCH] pd: change max tx bytes constant During team sync today we decided that this new value is superior. Follow-up to related work in #4614, #4627, and #4632. --- crates/core/app/src/app/mod.rs | 4 ++-- testnets/cometbft_config_template.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/app/src/app/mod.rs b/crates/core/app/src/app/mod.rs index 535bc3adad..8a51a8349d 100644 --- a/crates/core/app/src/app/mod.rs +++ b/crates/core/app/src/app/mod.rs @@ -54,8 +54,8 @@ type InterBlockState = Arc>; /// The maximum size of a CometBFT block payload (1MB) const MAX_BLOCK_TXS_PAYLOAD_BYTES: usize = 1024 * 1024; -/// The maximum size of a single individual transaction (30KB). -const MAX_TRANSACTION_SIZE_BYTES: usize = 30 * 1024; +/// The maximum size of a single individual transaction (96KB). +const MAX_TRANSACTION_SIZE_BYTES: usize = 96 * 1024; /// The maximum size of the evidence portion of a block (30KB). const MAX_EVIDENCE_SIZE_BYTES: usize = 30 * 1024; diff --git a/testnets/cometbft_config_template.toml b/testnets/cometbft_config_template.toml index 5c14fc7946..65f556a350 100644 --- a/testnets/cometbft_config_template.toml +++ b/testnets/cometbft_config_template.toml @@ -316,7 +316,7 @@ keep-invalid-txs-in-cache = false # Maximum size of a single transaction. # NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. -max_tx_bytes = 30720 +max_tx_bytes = 98304 # Maximum size of a batch of transactions to send to a peer # Including space needed by encoding (one varint per transaction).