From f765409c04b6ed22c7232bf742d2d85271c0379f Mon Sep 17 00:00:00 2001 From: Sanjit Bhat Date: Mon, 1 Jul 2024 13:27:58 -0400 Subject: [PATCH] refactor: evidence calc --- ktmerkle/evidence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktmerkle/evidence.go b/ktmerkle/evidence.go index bbc7ed9..c40c4b6 100644 --- a/ktmerkle/evidence.go +++ b/ktmerkle/evidence.go @@ -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