Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ rand = "0.9.2"
derive_more = { version = "2", features = ["deref", "from", "into"] }
fdlimit = "0.3.0"
rayon = "1.11.0"
parking_lot = { version = "0.12.3" }

# serialization
serde = { version = "1", features = ["derive"] }
Expand Down
11 changes: 11 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,16 @@ pub struct OrderflowIngressArgs {
#[clap(long = "http.enable-gzip", default_value_t = false)]
pub gzip_enabled: bool,

/// Maximum local ClickHouse backup disk size in MB above which user RPC (e.g. eth_sendBundle)
/// is rejected with disk full. Defaults to 1024 MB (1 GiB).
#[clap(
long = "disk-max-size-to-accept-user-rpc-mb",
default_value_t = 1024,
env = "DISK_MAX_SIZE_TO_ACCEPT_USER_RPC",
id = "DISK_MAX_SIZE_TO_ACCEPT_USER_RPC"
)]
pub disk_max_size_to_accept_user_rpc_mb: u64,
Comment on lines +269 to +277
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag is documented as 'MB' but the runtime conversion uses 1024 * 1024 (MiB). Either update docs/flag naming to MiB (recommended for clarity) or change the conversion to use decimal MB (1_000_000) to match the current documentation. Also consider aligning the env var name with the unit (e.g., ..._MB or ..._MIB) to avoid ambiguity.

Copilot uses AI. Check for mistakes.

/// The interval in seconds to update the peer list from BuilderHub.
#[clap(
long = "peer.update-interval-s",
Expand Down Expand Up @@ -342,6 +352,7 @@ impl Default for OrderflowIngressArgs {
score_bucket_s: 4,
log_json: false,
gzip_enabled: false,
disk_max_size_to_accept_user_rpc_mb: 1024,
tcp_small_clients: NonZero::new(1).expect("non-zero"),
tcp_big_clients: 0,
io_threads: 4,
Expand Down
Loading