From 022066d519691ba55d8ef49196f3c8277cdb44dc Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Wed, 15 May 2024 19:02:53 +0530 Subject: [PATCH] fix latestwm timestamp --- zboxcore/sdk/commitworker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zboxcore/sdk/commitworker.go b/zboxcore/sdk/commitworker.go index c58e3d24a..0f130f844 100644 --- a/zboxcore/sdk/commitworker.go +++ b/zboxcore/sdk/commitworker.go @@ -163,8 +163,8 @@ func (commitreq *CommitRequest) processCommit() { commitreq.result = ErrorCommitResult(e.Error()) return } - if commitreq.timestamp == lR.LatestWM.Timestamp { - commitreq.timestamp += 1 + if commitreq.timestamp <= lR.LatestWM.Timestamp { + commitreq.timestamp = lR.LatestWM.Timestamp + 1 } rootRef.CalculateHash()