Skip to content

Commit

Permalink
Add telemetry config
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Dec 9, 2024
1 parent 543a0b8 commit fa1dfcd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/citrea_config/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ pub struct FullNodeConfig<BitcoinServiceConfig> {
pub da: BitcoinServiceConfig,
/// Important pubkeys
pub public_keys: RollupPublicKeys,
/// Telemetry config
pub telemetry: TelemetryConfig,
}

impl Default for FullNodeConfig<BitcoinServiceConfig> {
Expand Down Expand Up @@ -174,6 +176,25 @@ impl Default for FullNodeConfig<BitcoinServiceConfig> {
84, 172, 112, 13, 54, 9, 206, 106, 138, 251, 218, 15, 28, 137, 112, 127,
],
},
telemetry: Default::default(),
}
}
}

/// Telemetry configuration.
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct TelemetryConfig {
/// Server host.
pub bind_host: String,
/// Server port.
pub bind_port: u16,
}

impl Default for TelemetryConfig {
fn default() -> Self {
Self {
bind_host: "0.0.0.0".to_owned(),
bind_port: 8081,
}
}
}
Expand Down

0 comments on commit fa1dfcd

Please sign in to comment.