Skip to content

Commit

Permalink
Merge pull request #2916 from dbluhm/fix/revocation-notifications-on-…
Browse files Browse the repository at this point in the history
…pending

fix: rev notifications on publish pending
  • Loading branch information
swcurran authored Apr 25, 2024
2 parents d60cb4b + 5b5de73 commit 9285556
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aries_cloudagent/revocation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ async def publish_pending_revocations(
if limit_crids:
crids = crids.intersection(limit_crids)
if crids:
crids = list(crids)
(delta_json, failed_crids) = await issuer.revoke_credentials(
issuer_rr_rec.cred_def_id,
issuer_rr_rec.revoc_reg_id,
Expand Down Expand Up @@ -294,6 +295,9 @@ async def publish_pending_revocations(
)
else:
rev_entry_resp = await issuer_rr_upd.send_entry(self._profile)
await notify_revocation_published_event(
self._profile, issuer_rr_rec.revoc_reg_id, crids
)
published = sorted(crid for crid in crids if crid not in failed_crids)
result[issuer_rr_rec.revoc_reg_id] = published

Expand Down

0 comments on commit 9285556

Please sign in to comment.