From 715fb5a85c359b8ab80c39af3bea0a81baa6c408 Mon Sep 17 00:00:00 2001 From: benjamin <ben@elixxir.io> Date: Tue, 25 Oct 2022 05:48:36 -0700 Subject: [PATCH] inceased timestmap grace --- channels/mutateTimestamp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/mutateTimestamp.go b/channels/mutateTimestamp.go index 8b8bf683e..791bfc160 100644 --- a/channels/mutateTimestamp.go +++ b/channels/mutateTimestamp.go @@ -18,14 +18,14 @@ const ( // arise due to cofactors with the message ID when doing the modulo tenMsInNs = 10000019 halfTenMsInNs = tenMsInNs / 2 - beforeGrace = 5 * time.Second + beforeGrace = 25 * time.Second afterGrace = 2 * time.Second ) var tenMsInNsLargeInt = large.NewInt(tenMsInNs) // vetTimestamp determines which timestamp to use for a message. It will -// use the local timestamp provided in the message as long as it is within 5 +// use the local timestamp provided in the message as long as it is within 25 // seconds before the round and 2 second after the round. Otherwise, it will // use the round timestamp via mutateTimestamp func vetTimestamp(localTS, ts time.Time, msgID channel.MessageID) time.Time { -- GitLab