mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-18 22:49:50 +01:00
Update dvm.py
This commit is contained in:
@@ -544,7 +544,7 @@ class DVM:
|
|||||||
self.client.handle_notifications(NotificationHandler())
|
self.client.handle_notifications(NotificationHandler())
|
||||||
while True:
|
while True:
|
||||||
for job in self.job_list:
|
for job in self.job_list:
|
||||||
if job.bolt11 != "" and job.payment_hash != "" and not job.is_paid:
|
if job.bolt11 != "" and job.payment_hash != "" and not job.payment_hash is None and not job.is_paid:
|
||||||
ispaid = check_bolt11_ln_bits_is_paid(job.payment_hash, self.dvm_config)
|
ispaid = check_bolt11_ln_bits_is_paid(job.payment_hash, self.dvm_config)
|
||||||
if ispaid and job.is_paid is False:
|
if ispaid and job.is_paid is False:
|
||||||
print("is paid")
|
print("is paid")
|
||||||
|
|||||||
Reference in New Issue
Block a user