Skip to content

Commit

Permalink
Merge pull request #2343 from blockstack/fix/sleep-syncctl
Browse files Browse the repository at this point in the history
sleep 1s if we're in the first reward cycle
  • Loading branch information
kantai authored Jan 14, 2021
2 parents 6f91fa9 + 1f6a75d commit fd9336c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testnet/stacks-node/src/syncctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ impl PoxSyncWatchdog {
< burnchain.first_block_height + (burnchain.pox_constants.reward_cycle_length as u64)
{
debug!("PoX watchdog in first reward cycle -- sync immediately");
sleep_ms(10_000);
return PoxSyncWatchdog::infer_initial_burnchain_block_download(
burnchain,
burnchain_tip,
Expand Down

0 comments on commit fd9336c

Please sign in to comment.