From a708ce1b5d9f7923e0aee9b7e24433ed9627cb08 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 20 Nov 2024 14:55:35 -0400 Subject: [PATCH] fix_: include the whole second when specifying the end time for store queries --- eth-node/bridge/geth/wakuv2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth-node/bridge/geth/wakuv2.go b/eth-node/bridge/geth/wakuv2.go index 2a28dd38d..3c48f012f 100644 --- a/eth-node/bridge/geth/wakuv2.go +++ b/eth-node/bridge/geth/wakuv2.go @@ -193,7 +193,7 @@ func (w *gethWakuV2Wrapper) RequestStoreMessages(ctx context.Context, peerID pee query := store.FilterCriteria{ TimeStart: proto.Int64(int64(r.From) * int64(time.Second)), - TimeEnd: proto.Int64(int64(r.To) * int64(time.Second)), + TimeEnd: proto.Int64(int64(time.Duration(r.To)*time.Second + time.Second - time.Nanosecond)), ContentFilter: protocol.NewContentFilter(w.waku.GetPubsubTopic(r.PubsubTopic), contentTopics...), }