From 2cbfdd956f31eafc81b0139e25b0915e79e25ef8 Mon Sep 17 00:00:00 2001 From: Starsquid <108214377+starsquidnodes@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:26:24 +0200 Subject: [PATCH 1/2] Fix makeslice issue for camelotv3 --- oracle/provider/camelot.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oracle/provider/camelot.go b/oracle/provider/camelot.go index c7c2603..4f28b25 100644 --- a/oracle/provider/camelot.go +++ b/oracle/provider/camelot.go @@ -277,6 +277,10 @@ func (p *CamelotProvider) updateVolumes( return nil } + if height1 == height2 { + return nil + } + blocks := height2 - height1 height1 = height1 + 1 From 344f28e3b870e82199cc0e2b1c2140a4d726edef Mon Sep 17 00:00:00 2001 From: Starsquid <108214377+starsquidnodes@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:28:28 +0200 Subject: [PATCH 2/2] Extend height comparison --- oracle/provider/camelot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oracle/provider/camelot.go b/oracle/provider/camelot.go index 4f28b25..ea457d0 100644 --- a/oracle/provider/camelot.go +++ b/oracle/provider/camelot.go @@ -277,7 +277,7 @@ func (p *CamelotProvider) updateVolumes( return nil } - if height1 == height2 { + if height1 >= height2 { return nil }