You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.expect("BUG: block height is not in a reward cycle")
1157
-
+ 1,
1158
-
),
1159
-
burnchain.get_headers_height() - 1,
1160
-
);
1161
-
1162
1152
debug!("Runloop: Begin main runloop starting a burnchain block {sortition_db_height}");
1163
1153
1164
1154
letmut last_tenure_sortition_height = 0;
@@ -1186,17 +1176,13 @@ impl RunLoop {
1186
1176
1187
1177
let remote_chain_height = burnchain.get_headers_height() - 1;
1188
1178
1189
-
// wait for the p2p state-machine to do at least one pass
1190
-
debug!("Runloop: Wait until Stacks block downloads reach a quiescent state before processing more burnchain blocks";"remote_chain_height" => remote_chain_height,"local_chain_height" => burnchain_height);
1191
-
1192
-
// wait until it's okay to process the next reward cycle's sortitions
1193
-
let ibd = matchself.get_pox_watchdog().pox_sync_wait(
1179
+
// wait until it's okay to process the next reward cycle's sortitions.
"Failed to find block in fork processed by burnchain indexer",
1280
1261
)
1281
1262
};
1282
-
if block.sortition{
1283
-
sort_count += 1;
1284
-
}
1285
1263
1286
1264
let sortition_id = &block.sortition_id;
1287
1265
@@ -1328,9 +1306,8 @@ impl RunLoop {
1328
1306
debug!("Runloop: enable miner after processing sortitions");
1329
1307
signal_mining_ready(globals.get_miner_status());
1330
1308
1331
-
num_sortitions_in_last_cycle = sort_count;
1332
1309
debug!(
1333
-
"Runloop: Synchronized sortitions up to block height {next_sortition_height} from {sortition_db_height} (chain tip height is {burnchain_height}); {num_sortitions_in_last_cycle} sortitions"
1310
+
"Runloop: Synchronized sortitions up to block height {next_sortition_height} from {sortition_db_height} (chain tip height is {burnchain_height})"
1334
1311
);
1335
1312
1336
1313
sortition_db_height = next_sortition_height;
@@ -1349,22 +1326,6 @@ impl RunLoop {
1349
1326
}
1350
1327
}
1351
1328
1352
-
// advance one reward cycle at a time.
1353
-
// If we're still downloading, then this is simply target_burnchain_block_height + reward_cycle_len.
1354
-
// Otherwise, this is burnchain_tip + reward_cycle_len
1355
-
let next_target_burnchain_block_height = cmp::min(
0 commit comments