Skip to content

Commit 42c090b

Browse files
author
Ludo Galabru
committed
feat: cascade hord activation
1 parent 239b26a commit 42c090b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/chainhook-cli/src/cli/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ async fn handle_command(opts: Opts, ctx: Context) -> Result<(), String> {
434434
}
435435

436436
let mut service = Service::new(config, ctx);
437-
return service.run(predicates).await;
437+
return service.run(predicates, cmd.hord_disabled).await;
438438
}
439439
},
440440
Command::Config(subcmd) => match subcmd {

components/chainhook-cli/src/service/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Service {
3030
Self { config, ctx }
3131
}
3232

33-
pub async fn run(&mut self, predicates: Vec<ChainhookFullSpecification>) -> Result<(), String> {
33+
pub async fn run(&mut self, predicates: Vec<ChainhookFullSpecification>, hord_disabled: bool) -> Result<(), String> {
3434
let mut chainhook_config = ChainhookConfig::new();
3535

3636
if predicates.is_empty() {
@@ -87,6 +87,7 @@ impl Service {
8787

8888
let mut event_observer_config = self.config.get_event_observer_config();
8989
event_observer_config.chainhook_config = Some(chainhook_config);
90+
event_observer_config.ordinals_enabled = !hord_disabled;
9091

9192
info!(
9293
self.ctx.expect_logger(),

0 commit comments

Comments
 (0)