mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 16:53:24 +08:00
fix: use indexer's get_stacks_epochs()
This commit is contained in:
@@ -1482,13 +1482,8 @@ impl BurnchainController for BitcoinRegtestController {
|
||||
}
|
||||
|
||||
fn get_stacks_epochs(&self) -> Vec<StacksEpoch> {
|
||||
match self.config.burnchain.epochs.as_ref() {
|
||||
Some(epochs) => epochs.clone(),
|
||||
None => {
|
||||
let (_, indexer) = self.setup_indexer_runtime();
|
||||
indexer.get_stacks_epochs()
|
||||
}
|
||||
}
|
||||
let (_, indexer) = self.setup_indexer_runtime();
|
||||
indexer.get_stacks_epochs()
|
||||
}
|
||||
|
||||
fn start(
|
||||
|
||||
Reference in New Issue
Block a user