File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,14 @@ impl MultipleMinerTest {
671
671
}
672
672
}
673
673
674
+ pub fn get_primary_proposals_submitted(&self) -> RunLoopCounter {
675
+ self.signer_test
676
+ .running_nodes
677
+ .counters
678
+ .naka_proposed_blocks
679
+ .clone()
680
+ }
681
+
674
682
/// Boot node 1 to epoch 3.0 and wait for node 2 to catch up.
675
683
pub fn boot_to_epoch_3(&mut self) {
676
684
info!(
@@ -15255,15 +15263,15 @@ fn miner_stackerdb_version_rollover() {
15255
15263
let mut stackerdb =
15256
15264
StackerDBSession::new(&conf_2.node.rpc_bind, boot_code_id(MINERS_NAME, false));
15257
15265
15258
- let proposals_before = miners.get_counters_for_miner(1).naka_proposed_blocks.load(Ordering::SeqCst );
15266
+ let proposals_before = miners.get_primary_proposals_submitted().get( );
15259
15267
15260
15268
*proxy_1.drop_control.lock().unwrap() = true;
15261
15269
*proxy_2.drop_control.lock().unwrap() = true;
15262
15270
15263
15271
let (_, _sent_nonce) = miners.send_transfer_tx();
15264
15272
15265
15273
wait_for(30, || {
15266
- let proposals = miners.get_counters_for_miner(1).naka_proposed_blocks.load(Ordering::SeqCst );
15274
+ let proposals = miners.get_primary_proposals_submitted().get( );
15267
15275
Ok(proposals > proposals_before)
15268
15276
})
15269
15277
.unwrap();
You can’t perform that action at this time.
0 commit comments