Skip to content

Commit

Permalink
Merge pull request #3371 from dbluhm/fix/endpoint-refresh-checks-keys
Browse files Browse the repository at this point in the history
fix: check routing keys on indy_vdr endpoint refresh
  • Loading branch information
dbluhm authored Dec 3, 2024
2 parents 389e9d2 + 6e26d0b commit 72bff10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acapy_agent/ledger/indy_vdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 72bff10

Please sign in to comment.