use tag instead of pubke_prefix fo req_acl

This commit is contained in:
Florent 2025-09-15 20:59:42 +02:00
parent 83a0e2938f
commit 4829680435

View file

@ -117,11 +117,10 @@ class BinaryCommandHandler(CommandHandlerBase):
if self.dispatcher is None:
return None
# Listen for ACL_RESPONSE event with matching pubkey
contact_pubkey_prefix = contact["public_key"][0:12]
# Listen for ACL_RESPONSE event with matching tag
acl_event = await self.dispatcher.wait_for_event(
EventType.ACL_RESPONSE,
attribute_filters={"pubkey_prefix": contact_pubkey_prefix},
attribute_filters={"tag": res.payload["expected_ack"].hex()},
timeout=timeout,
)