Skip to content

Commit

Permalink
fix test build, rename check fn to refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai committed Feb 6, 2024
1 parent 98d9129 commit 645a931
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions stackslib/src/chainstate/coordinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ impl<'a, T: BlockEventDispatcher, U: RewardSetProvider, B: BurnchainHeaderReader
atlas_db: Some(atlas_db),
config: ChainsCoordinatorConfig::new(),
burnchain_indexer,
refresh_stacker_db: Arc::new(AtomicBool::new(false)),
}
}
}
Expand Down
1 change: 1 addition & 0 deletions stackslib/src/cost_estimates/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ pub fn make_block_receipt(tx_receipts: Vec<StacksTransactionReceipt>) -> StacksE
parent_burn_block_timestamp: 1,
evaluated_epoch: StacksEpochId::Epoch20,
epoch_transition: false,
signers_updated: false,
}
}
7 changes: 5 additions & 2 deletions testnet/stacks-node/src/nakamoto_node/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ impl PeerThread {
}
}

fn check_stackerdb_reload(&mut self) {
/// Check if the StackerDB config needs to be updated (by looking
/// at the signal in `self.globals`), and if so, refresh the
/// StackerDB config
fn refresh_stackerdb(&mut self) {
if !self.globals.coord_comms.need_stackerdb_update() {
return;
}
Expand Down Expand Up @@ -243,7 +246,7 @@ impl PeerThread {
self.poll_timeout
};

self.check_stackerdb_reload();
self.refresh_stackerdb();

// do one pass
let p2p_res = {
Expand Down

0 comments on commit 645a931

Please sign in to comment.