Skip to content

Commit

Permalink
Merge pull request #1493 from 0chain/hotfix/wm-timestamp
Browse files Browse the repository at this point in the history
fix wm timestamp
  • Loading branch information
dabasov authored May 15, 2024
2 parents 358c397 + 022066d commit 9065d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zboxcore/sdk/commitworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9065d01

Please sign in to comment.