move pubkey checks to lnd client

This commit is contained in:
kiwiidb
2023-06-22 16:13:36 +02:00
parent c6b94e0d0d
commit def32f2d45
14 changed files with 60 additions and 46 deletions

View File

@@ -135,7 +135,7 @@ func (svc *LndhubService) BalanceCheck(ctx context.Context, lnpayReq *lnd.LNPayR
}
func (svc *LndhubService) CalcFeeLimit(destination string, amount int64) int64 {
if destination == svc.IdentityPubkey {
if svc.LndClient.IsIdentityPubkey(destination) {
return 0
}
limit := int64(10)