From 6e26d0be40806dd966e724a75f8c7e39c788e549 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Mon, 2 Dec 2024 16:40:56 -0600 Subject: [PATCH] fix: check routing keys on endpoint refresh Previously we were only checking if the endpoint value had changed but it is possible for the routing keys to update and not the endpoint. This resulted in new attrib txns not getting published when there were new routing keys. Signed-off-by: Daniel Bluhm --- acapy_agent/ledger/indy_vdr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acapy_agent/ledger/indy_vdr.py b/acapy_agent/ledger/indy_vdr.py index d26734ec6f..aad8963cd5 100644 --- a/acapy_agent/ledger/indy_vdr.py +++ b/acapy_agent/ledger/indy_vdr.py @@ -739,8 +739,11 @@ async def update_endpoint_for_did( if all_exist_endpoints else None ) + existing_routing_keys = ( + all_exist_endpoints.get("routingKeys") if all_exist_endpoints else None + ) - if exist_endpoint_of_type != endpoint: + if exist_endpoint_of_type != endpoint or existing_routing_keys != routing_keys: if self.read_only: raise LedgerError( "Error cannot update endpoint when ledger is in read only mode"