Skip to content

Commit

Permalink
prove multicalled relays [SLT-422]
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime committed Nov 4, 2024
1 parent 5f162af commit bce4c82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/rfq/guard/service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,13 @@ func (g *Guard) isProveValidParse(ctx context.Context, proven *guarddb.PendingPr
DestToken: event.DestToken,
}

return relayMatchesBridgeRequest(details, bridgeRequest), nil
// if we find a relay that matches the bridge, then we can return true. otherwise continue looking through any remaining logs.
if relayMatchesBridgeRequest(details, bridgeRequest) {
return true, nil
}
}

// if we have reached this point, then every log has been examined & none found suitable to validate the proof
return false, nil
}

Expand Down

0 comments on commit bce4c82

Please sign in to comment.