with ClientPool('wss://relay.nostr.info') as c:

followers = c.query({

'kinds': [Event.KIND_CONTACT_LIST],

'#p': ['3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681']

})

ufs = {ContactList.from_event(c).owner_public_key for c in followers}

# this will timeout

metas1 = c.query({

'kinds': [Event.KIND_META],

'authors': list(ufs)

}, timeout=5)

# this will return ok in damus

q = []

for k in util_funcs.chunk(list(ufs),250):

q.append({

'kinds': [Event.KIND_META],

'authors': k

})

metas2 = c.query(q, timeout=5)

print(len(metas1) == len(metas2))

Reply to this note

Please Login to reply.

Discussion

No replies yet.