Skip to content

Commit

Permalink
flush
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Mar 11, 2024
1 parent 3e78698 commit ba52a48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/pairing/keeper/msg_server_relay_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ func (k msgServer) RelayPayment(goCtx context.Context, msg *types.MsgRelayPaymen
rejected_relays_num--
}

// save all payment objects
paymentHandler.Flush(ctx)

// if all relays failed, fail the TX
if rejected_relays_num != 0 {
return nil, utils.LavaFormatWarning("relay payment failed", fmt.Errorf("all relays rejected"),
Expand Down

0 comments on commit ba52a48

Please sign in to comment.