adjustments for nostrsdk 0.39

This commit is contained in:
dbth
2025-02-01 19:35:39 +01:00
parent 86d96a4772
commit f9b68d3b6d
49 changed files with 183 additions and 148 deletions

View File

@@ -78,7 +78,8 @@ class DVM:
dvm_filter = (Filter().kinds(kinds).since(Timestamp.now()))
create_sql_table(self.dvm_config.DB)
await admin_make_database_updates(adminconfig=self.admin_config, dvmconfig=self.dvm_config, client=self.client)
await self.client.subscribe([dvm_filter, zap_filter], None)
await self.client.subscribe(dvm_filter, None)
await self.client.subscribe(zap_filter, None)
if self.dvm_config.ENABLE_NUTZAP:
nutzap_wallet = NutZapWallet()
@@ -232,7 +233,7 @@ class DVM:
await send_job_status_reaction(nip90_event, "error", False, amount, self.client, cashu_message,
self.dvm_config)
return
# if user is whitelisted or task is free, just do the job
# if user is whitelisted or task is free, just dxo the job
if (user.iswhitelisted or task_is_free or cashu_redeemed) and (
p_tag_str == "" or p_tag_str ==
self.dvm_config.PUBLIC_KEY):