Skip to content

Commit

Permalink
feat: tweak next_initiative delay value
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Feb 8, 2024
1 parent 153501c commit 9bfba59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testnet/stacks-node/src/nakamoto_node/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl RelayerThread {

miner_thread: None,
is_miner,
next_initiative: Instant::now() + Duration::from_secs(10),
next_initiative: Instant::now() + Duration::from_secs(4),
last_committed: None,
}
}
Expand Down Expand Up @@ -786,10 +786,10 @@ impl RelayerThread {
pub fn main(mut self, relay_rcv: Receiver<RelayerDirective>) {
debug!("relayer thread ID is {:?}", std::thread::current().id());

self.next_initiative = Instant::now() + Duration::from_secs(10);
self.next_initiative = Instant::now() + Duration::from_secs(4);
while self.globals.keep_running() {
let directive = if Instant::now() >= self.next_initiative {
self.next_initiative = Instant::now() + Duration::from_secs(10);
self.next_initiative = Instant::now() + Duration::from_secs(4);
self.initiative()
} else {
None
Expand Down

0 comments on commit 9bfba59

Please sign in to comment.