Skip to content

Commit 30557f8

Browse files
author
Ludo Galabru
committed
fix: auto enable stacks predicate
1 parent e438db7 commit 30557f8

File tree

1 file changed

+9
-1
lines changed
  • components/chainhook-cli/src/service

1 file changed

+9
-1
lines changed

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,15 @@ impl Service {
259259
}
260260
match chainhook {
261261
ChainhookSpecification::Stacks(predicate_spec) => {
262-
let _ = stacks_scan_op_tx.send((predicate_spec, api_key));
262+
// let _ = stacks_scan_op_tx.send((predicate_spec, api_key));
263+
info!(
264+
self.ctx.expect_logger(),
265+
"Enabling stacks predicate {}", predicate_spec.uuid
266+
);
267+
let _ = observer_command_tx.send(ObserverCommand::EnablePredicate(
268+
ChainhookSpecification::Stacks(predicate_spec),
269+
api_key,
270+
));
263271
}
264272
ChainhookSpecification::Bitcoin(predicate_spec) => {
265273
let _ = bitcoin_scan_op_tx.send((predicate_spec, api_key));

0 commit comments

Comments
 (0)