Skip to content

Commit

Permalink
Merge pull request #1885 from stakwork/feat/add_logs_to_payment
Browse files Browse the repository at this point in the history
PR: added appropriate keysend error
  • Loading branch information
elraphty authored Oct 12, 2024
2 parents 1dde90f + e7b3ff1 commit 94faabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handlers/bounty.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ func (h *bountyHandler) MakeBountyPayment(w http.ResponseWriter, r *http.Request
}
} else { // Send payment status
log.Println("Keysend payment not completed ===")
msg["msg"] = v2KeysendRes.Status
msg["msg"] = "keysend_error"
msg["invoice"] = ""

socket, err := h.getSocketConnections(request.Websocket_token)
Expand Down
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func BuildV2KeysendBodyData(amount uint, receiver_pubkey string, route_hint stri
if route_hint != "" {
bodyData = fmt.Sprintf(`{"amt_msat": %d, "dest": "%s", "route_hint": "%s", "data": "%s", "wait": true}`, amountMsat, receiver_pubkey, route_hint, memo)
} else {
bodyData = fmt.Sprintf(`{"amt_msat": %d, "dest": "%s", "route_hint": "", , "data": "%s", "wait": true}`, amountMsat, receiver_pubkey, memo)
bodyData = fmt.Sprintf(`{"amt_msat": %d, "dest": "%s", "route_hint": "", "data": "%s", "wait": true}`, amountMsat, receiver_pubkey, memo)
}

return bodyData
Expand Down

0 comments on commit 94faabf

Please sign in to comment.