Skip to content

Commit dbba61e

Browse files
committed
Add telemetry config
1 parent 543a0b8 commit dbba61e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/citrea_config/rollup.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ pub struct FullNodeConfig<BitcoinServiceConfig> {
121121
pub da: BitcoinServiceConfig,
122122
/// Important pubkeys
123123
pub public_keys: RollupPublicKeys,
124+
/// Telemetry config
125+
pub telemetry: TelemetryConfig,
124126
}
125127

126128
impl Default for FullNodeConfig<BitcoinServiceConfig> {
@@ -174,6 +176,25 @@ impl Default for FullNodeConfig<BitcoinServiceConfig> {
174176
84, 172, 112, 13, 54, 9, 206, 106, 138, 251, 218, 15, 28, 137, 112, 127,
175177
],
176178
},
179+
telemetry: Default::default(),
180+
}
181+
}
182+
}
183+
184+
/// Telemetry configuration.
185+
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
186+
pub struct TelemetryConfig {
187+
/// Server host.
188+
pub bind_host: String,
189+
/// Server port.
190+
pub bind_port: u16,
191+
}
192+
193+
impl Default for TelemetryConfig {
194+
fn default() -> Self {
195+
Self {
196+
bind_host: "localhost".to_owned(),
197+
bind_port: 8081,
177198
}
178199
}
179200
}

0 commit comments

Comments
 (0)