Skip to content

Commit

Permalink
RFQ Guard: fixes (#2878)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse authored Jul 16, 2024
1 parent 024fdd6 commit ac2fa5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion services/rfq/guard/service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (g *Guard) handleProveCalled(parentCtx context.Context, proven *guarddb.Pen
// first, get the corresponding bridge request
bridgeRequest, err := g.db.GetBridgeRequestByID(ctx, proven.TransactionID)
if err != nil {
return fmt.Errorf("could not get bridge request: %w", err)
return fmt.Errorf("could not get bridge request for txid %s: %w", hexutil.Encode(proven.TransactionID[:]), err)
}

valid, err := g.isProveValid(ctx, proven, bridgeRequest)
Expand Down
4 changes: 4 additions & 0 deletions services/rfq/relayer/service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ func (q *QuoteRequestHandler) handleRelayCompleted(ctx context.Context, _ trace.
//
// This is the seventh step in the bridge process. Here we process the event that the proof was posted on chain.
func (r *Relayer) handleProofProvided(ctx context.Context, req *fastbridge.FastBridgeBridgeProofProvided) (err error) {
if req.Relayer != r.signer.Address() {
return nil
}

// TODO: this can still get re-orged
// ALso: we should make sure the previous status is ProvePosting
err = r.db.UpdateQuoteRequestStatus(ctx, req.TransactionId, reldb.ProvePosted, nil)
Expand Down

0 comments on commit ac2fa5d

Please sign in to comment.