stop doing the check_invoices thing on each call. do it once on lnbits starup and then rely on the invoices listener.
This commit is contained in:
@@ -60,10 +60,10 @@ class Wallet(NamedTuple):
|
||||
incoming: bool = True,
|
||||
exclude_uncheckable: bool = False
|
||||
) -> List["Payment"]:
|
||||
from .crud import get_wallet_payments
|
||||
from .crud import get_payments
|
||||
|
||||
return await get_wallet_payments(
|
||||
self.id,
|
||||
return await get_payments(
|
||||
wallet_id=self.id,
|
||||
complete=complete,
|
||||
pending=pending,
|
||||
outgoing=outgoing,
|
||||
|
||||
Reference in New Issue
Block a user