From 275b748b054fa155ea6be505838d58776a4ce7bb Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 12 Sep 2024 15:54:57 -0400 Subject: [PATCH] e2e --- tests/grpc/price_listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/grpc/price_listener.go b/tests/grpc/price_listener.go index 4085f98b..3b1d40b2 100644 --- a/tests/grpc/price_listener.go +++ b/tests/grpc/price_listener.go @@ -28,7 +28,7 @@ func listenForPrices( // Record each historic stamp when the chain should be recording them for i := 0; i < int(params.MedianStampPeriod); i++ { height := <-chainHeight.HeightChanged - if isPeriodFirstBlock(height, params.HistoricStampPeriod) { + if isPeriodFirstBlock(height + 1, params.HistoricStampPeriod) { exchangeRates, err := ojoClient.QueryClient.QueryExchangeRates() log.Info().Msgf("block %d stamp: %+v", height, exchangeRates) if err != nil {