From 9fa06c42e84c32fb01237d49a28349985c4e06b9 Mon Sep 17 00:00:00 2001 From: jamshale Date: Fri, 1 Mar 2024 18:45:25 +0000 Subject: [PATCH] Send revocation list instead of rev_list object - Anoncreds Signed-off-by: jamshale --- aries_cloudagent/anoncreds/revocation.py | 4 +++- .../protocols/revocation_notification/v1_0/routes.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/aries_cloudagent/anoncreds/revocation.py b/aries_cloudagent/anoncreds/revocation.py index 0854c4a0b4..142731baf1 100644 --- a/aries_cloudagent/anoncreds/revocation.py +++ b/aries_cloudagent/anoncreds/revocation.py @@ -494,7 +494,9 @@ async def store_revocation_registry_list(self, result: RevListResult): if result.revocation_list_state.state == STATE_FINISHED: await self.notify( - RevListFinishedEvent.with_payload(rev_list.rev_reg_def_id, rev_list) + RevListFinishedEvent.with_payload( + rev_list.rev_reg_def_id, rev_list.revocation_list + ) ) except AskarError as err: diff --git a/aries_cloudagent/protocols/revocation_notification/v1_0/routes.py b/aries_cloudagent/protocols/revocation_notification/v1_0/routes.py index a71c95125d..3ab25fec76 100644 --- a/aries_cloudagent/protocols/revocation_notification/v1_0/routes.py +++ b/aries_cloudagent/protocols/revocation_notification/v1_0/routes.py @@ -54,6 +54,10 @@ async def on_revocation_published(profile: Profile, event: Event): await responder.send( record.to_message(), connection_id=record.connection_id ) + LOGGER.info( + "Sent revocation notification for credential to %s", + record.connection_id, + ) except StorageNotFoundError: LOGGER.info(