Skip to content

Commit 260b758

Browse files
committed
feat(node): apply a delay function
1 parent 5037dc2 commit 260b758

File tree

1 file changed

+2
-2
lines changed
  • node/src/actors/chain_manager

1 file changed

+2
-2
lines changed

node/src/actors/chain_manager/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2230,8 +2230,8 @@ impl ChainManager {
22302230
// Auxiliary function that converts one delay in another
22312231
fn delay_function(initial_delay: Duration) -> Duration {
22322232
// TODO: Apply a right delay function
2233-
// Direct delay
2234-
initial_delay
2233+
// Remove 7.5 secs to the delay
2234+
initial_delay.saturating_sub(Duration::new(7, 500000000))
22352235
}
22362236

22372237
// Calculate the delay to introduce in block broadcasting

0 commit comments

Comments
 (0)