Skip to content

Commit

Permalink
fix: next_initiative_delay in millis
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Apr 2, 2024
1 parent c1633a5 commit 465d9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testnet/stacks-node/src/nakamoto_node/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ impl RelayerThread {
debug!("relayer thread ID is {:?}", std::thread::current().id());

self.next_initiative =
Instant::now() + Duration::from_secs(self.config.node.next_initiative_delay);
Instant::now() + Duration::from_millis(self.config.node.next_initiative_delay);
while self.globals.keep_running() {
let directive = if Instant::now() >= self.next_initiative {
self.next_initiative =
Expand Down

0 comments on commit 465d9f0

Please sign in to comment.