Merge branch 'next' into fix/miner-rewards-events

This commit is contained in:
Matthew Little
2022-11-02 19:03:35 +01:00
committed by GitHub

View File

@@ -333,7 +333,7 @@ impl BitcoinRegtestController {
/// Get the default Burnchain instance from our config
fn default_burnchain(&self) -> Burnchain {
let (network_name, _network_type) = self.config.burnchain.get_bitcoin_network();
match &self.burnchain_config {
let mut burnchain = match &self.burnchain_config {
Some(burnchain) => burnchain.clone(),
None => {
let working_dir = self.config.get_burn_db_path();
@@ -345,7 +345,10 @@ impl BitcoinRegtestController {
}
}
}
}
};
self.config
.update_pox_constants(&mut burnchain.pox_constants);
burnchain
}
/// Get the PoX constants in use