mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-06-15 08:58:29 +08:00
fix: auto enable stacks predicate
This commit is contained in:
@@ -259,7 +259,15 @@ impl Service {
|
||||
}
|
||||
match chainhook {
|
||||
ChainhookSpecification::Stacks(predicate_spec) => {
|
||||
let _ = stacks_scan_op_tx.send((predicate_spec, api_key));
|
||||
// let _ = stacks_scan_op_tx.send((predicate_spec, api_key));
|
||||
info!(
|
||||
self.ctx.expect_logger(),
|
||||
"Enabling stacks predicate {}", predicate_spec.uuid
|
||||
);
|
||||
let _ = observer_command_tx.send(ObserverCommand::EnablePredicate(
|
||||
ChainhookSpecification::Stacks(predicate_spec),
|
||||
api_key,
|
||||
));
|
||||
}
|
||||
ChainhookSpecification::Bitcoin(predicate_spec) => {
|
||||
let _ = bitcoin_scan_op_tx.send((predicate_spec, api_key));
|
||||
|
||||
Reference in New Issue
Block a user