Skip to content

Commit 0098a1e

Browse files
modify default max bytes to 1.85 MB
1 parent 2adef17 commit 0098a1e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/evolve/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use serde::{Deserialize, Serialize};
22

3-
/// Default maximum bytes for txpool transactions (1.98 MB)
4-
pub const DEFAULT_MAX_TXPOOL_BYTES: u64 = 1_980 * 1024; // 1.98 MB = 2,027,520 bytes
3+
/// Default maximum bytes for txpool transactions (1.85 MB)
4+
pub const DEFAULT_MAX_TXPOOL_BYTES: u64 = (1.85 * 1024.0 * 1024.0) as u64; // 1.85 MB = 1,939,866 bytes
55

66
/// Configuration for Rollkit-specific functionality
77
#[derive(Debug, Clone, Serialize, Deserialize)]

crates/evolve/src/rpc/txpool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mod tests {
8585
// Test that the default max_txpool_bytes value is correctly set
8686
let config = RollkitConfig::default();
8787
assert_eq!(config.max_txpool_bytes, DEFAULT_MAX_TXPOOL_BYTES);
88-
assert_eq!(DEFAULT_MAX_TXPOOL_BYTES, 1_980 * 1024); // 1.98 MB
88+
assert_eq!(DEFAULT_MAX_TXPOOL_BYTES, (1.85 * 1024.0 * 1024.0) as u64); // 1.85 MB
8989
}
9090

9191
#[test]
@@ -95,7 +95,7 @@ mod tests {
9595

9696
// Test with default config
9797
let config = RollkitConfig::default();
98-
assert_eq!(config.max_txpool_bytes, 1_980 * 1024);
98+
assert_eq!(config.max_txpool_bytes, (1.85 * 1024.0 * 1024.0) as u64);
9999

100100
// Test with custom config
101101
let custom_config = RollkitConfig::new(1000);

0 commit comments

Comments
 (0)