Skip to content

Commit 93cce93

Browse files
authored
Merge pull request #13 from tellor-io/fix/update-bridge-query-type-check
updated query type checks to look for TRBBridgeV2
2 parents 075ff58 + 157cd75 commit 93cce93

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

reporter/client/reporter_monitors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ func (c *Client) MonitorForTippedQueries(ctx context.Context, wg *sync.WaitGroup
160160
haveCommited := commitedIds[query.Id]
161161
mutex.Unlock()
162162
if height > query.Expiration || haveCommited ||
163-
!strings.EqualFold(queryType, "SpotPrice") && !strings.EqualFold(queryType, "TRBBridge") {
163+
!strings.EqualFold(queryType, "SpotPrice") && !strings.EqualFold(queryType, "TRBBridgeV2") {
164164
continue
165165
}
166166

167-
if strings.EqualFold(queryType, "TRBBridge") {
167+
if strings.EqualFold(queryType, "TRBBridgeV2") {
168168
mutex.Lock()
169169
haveCommitedTip := depositTipMap[query.Id]
170170
mutex.Unlock()

token_bridge_feed/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (c *Client) ProcessPendingTips() error {
158158
}
159159

160160
// Verify this is a TRBBridge query
161-
if queryType != "TRBBridge" {
161+
if queryType != "TRBBridgeV2" {
162162
c.logger.Error("Invalid query type for tip", "queryType", queryType)
163163
c.tokenBridgeTipsCache.RemoveOldestTip()
164164
return nil

0 commit comments

Comments
 (0)