mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-22 04:57:15 +01:00
adjustments for nostrsdk 0.39
This commit is contained in:
@@ -72,7 +72,11 @@ async def nostr_client(target_dvm_npub):
|
||||
kinds.append(Kind(kind))
|
||||
|
||||
dvm_filter = (Filter().kinds(kinds).since(Timestamp.now()).pubkey(pk))
|
||||
await client.subscribe([dm_zap_filter, dvm_filter], None)
|
||||
await client.subscribe(dm_zap_filter, None)
|
||||
await client.subscribe(dvm_filter, None)
|
||||
|
||||
|
||||
|
||||
|
||||
# This will send a request to the DVM
|
||||
await nostr_client_generic_test(target_dvm_npub)
|
||||
|
||||
@@ -58,7 +58,7 @@ async def nostr_client(target_dvm_npub):
|
||||
kinds.append(Kind(kind))
|
||||
|
||||
dvm_filter = (Filter().kinds(kinds).since(Timestamp.now()).pubkey(pk))
|
||||
await client.subscribe([dvm_filter], None)
|
||||
await client.subscribe(dvm_filter, None)
|
||||
|
||||
# This will send a request to the DVM
|
||||
await nostr_client_generic_test(target_dvm_npub)
|
||||
|
||||
@@ -25,7 +25,7 @@ async def delete_nip_89(private_key, relay_list, pow=True):
|
||||
await client.add_relay(relay)
|
||||
await client.connect()
|
||||
filter = Filter().kind(EventDefinitions.KIND_ANNOUNCEMENT).author(keys.public_key())
|
||||
events = await client.fetch_events([filter], timedelta(seconds=5))
|
||||
events = await client.fetch_events(filter, timedelta(seconds=5))
|
||||
|
||||
if len(events.to_vec()) == 0:
|
||||
print("Couldn't find note on relays. Seems they are gone.")
|
||||
|
||||
Reference in New Issue
Block a user