Skip to content

Commit

Permalink
refactor: evidence calc
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjit-bhat committed Jul 1, 2024
1 parent 15d97c4 commit f765409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ktmerkle/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (e *evidServLink) check(servPk cryptoffi.PublicKey) errorTy {
if e.epoch0 == e.epoch1 {
return std.BytesEqual(link0, link1)
}
if e.epoch0+1 == e.epoch1 {
if e.epoch0 == e.epoch1-1 {
return std.BytesEqual(link0, e.prevLink1)
}
return errSome
Expand Down

0 comments on commit f765409

Please sign in to comment.