mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-19 13:44:53 +01:00
move pubkey checks to lnd client
This commit is contained in:
@@ -72,7 +72,7 @@ func (controller *KeySendController) KeySend(c echo.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if reqBody.Destination == controller.svc.IdentityPubkey && reqBody.CustomRecords[strconv.Itoa(service.TLV_WALLET_ID)] == "" {
|
||||
if controller.svc.LndClient.IsIdentityPubkey(reqBody.Destination) && reqBody.CustomRecords[strconv.Itoa(service.TLV_WALLET_ID)] == "" {
|
||||
return c.JSON(http.StatusBadRequest, &responses.ErrorResponse{
|
||||
Error: true,
|
||||
Code: 8,
|
||||
|
||||
Reference in New Issue
Block a user