Skip to content
Merged
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
3 changes: 3 additions & 0 deletions src/citrea_config/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub struct RpcConfig {
/// Maximum number of subscription connections
#[serde(default = "default_max_subscriptions_per_connection")]
pub max_subscriptions_per_connection: u32,
/// API key for protected JSON-RPC methods
pub api_key: Option<String>,
}

#[inline]
Expand Down Expand Up @@ -145,6 +147,7 @@ impl Default for RollupConfig {
batch_requests_limit: 50,
enable_subscriptions: true,
max_subscriptions_per_connection: 100,
api_key: Some("12345".to_string()),
},
storage: StorageConfig {
path: TempDir::new()
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod bitcoin;
mod citrea_cli;
pub mod citrea_cli;
mod citrea_config;
mod client;
pub mod client;
pub mod config;
mod docker;
pub mod framework;
Expand Down
Loading