Skip to content

Commit

Permalink
Increased max DA tx size to 1MiB (#717)
Browse files Browse the repository at this point in the history
* updated max DA tx limit to 1 MiB

* bumped spec_version to 41
  • Loading branch information
ToufeeqP authored Jan 31, 2025
1 parent 305e82e commit d5a8001
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions e2e/src/tests/max_block_submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use tracing::trace;
/// to the next block. The limit for the transaction is currently set to 512 kB, and limit for the block
/// is 2 MB, so this means 128 data transactions are needed to fill the block. Depending on the network,
/// it may not be possible to transfer so many in 20 s (the default block time)
const BLOCK_SIZE: usize = 2 * 1024 * 1024;
const TX_MAX_SIZE: usize = 512 * 1024;
const BLOCK_SIZE: usize = 4 * 1024 * 1024;
const TX_MAX_SIZE: usize = 1024 * 1024;
const NUM_CHUNKS: u64 = (BLOCK_SIZE / TX_MAX_SIZE) as u64;

#[test(tokio::test)]
Expand Down
4 changes: 2 additions & 2 deletions pallets/dactr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ pub mod pallet {
pub const MinBlockRows: BlockLengthRows = BlockLengthRows(32);
pub const MaxBlockRows: BlockLengthRows = BlockLengthRows(1024);
pub const MinBlockCols: BlockLengthColumns = BlockLengthColumns(32);
pub const MaxBlockCols: BlockLengthColumns = BlockLengthColumns(256);
pub const MaxBlockCols: BlockLengthColumns = BlockLengthColumns(1024);
pub const MaxAppKeyLength: u32 = 32;
pub const MaxAppDataLength: u32 = 524_288; // 512 Kb
pub const MaxAppDataLength: u32 = 1_048_576; // 1 Mb
}

#[frame_support::register_default_impl(TestDefaultConfig)]
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ pub mod da {
pub const MaxBlockCols: BlockLengthColumns = BlockLengthColumns(1024);
}
pub type MaxAppKeyLength = ConstU32<64>;
pub type MaxAppDataLength = ConstU32<524_288>; // 512 Kb
pub type MaxAppDataLength = ConstU32<1_048_576>; // 1 Mb
}

/// Macro to set a value (e.g. when using the `parameter_types` macro) to either a production value
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// Per convention: if the runtime behavior changes, increment spec_version
// and set impl_version to 0. This paramenter is typically incremented when
// there's an update to the transaction_version.
spec_version: 40,
spec_version: 41,
// The version of the implementation of the specification. Nodes can ignore this. It is only
// used to indicate that the code is different. As long as the authoring_version and the
// spec_version are the same, the code itself might have changed, but the native and Wasm
Expand Down

0 comments on commit d5a8001

Please sign in to comment.