Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Feb 1, 2024
1 parent ebbfc69 commit 9050be1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/routes/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,17 +358,19 @@ async def create_credential_definition(
credential_definition_id = active_rev_reg.result.cred_def_id
try:
async with client_from_auth(auth) as aries_controller:
bound_logger.debug("Writing firts accum value to ledger (rev_reg_entry)")

bound_logger.debug(
"Writing firts accum value to ledger (rev_reg_entry)"
)

await aries_controller.revocation.publish_rev_reg_entry(
rev_reg_id=revoc_reg_creation_result.revoc_reg_id,
conn_id=endorser_connection.results[0].connection_id,
create_transaction_for_endorser=True,
)

bound_logger.debug("Endorse rev_reg_entry")
listener = SseListener(topic="endorsements", wallet_id="admin")
#TODO move endorsement to endoser service
# TODO move endorsement to endoser service

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

TODO move endorsement to endoser service Note

TODO move endorsement to endoser service
try:
bound_logger.debug(
"Waiting for endorsements event in `request-received` state"
Expand All @@ -391,7 +393,9 @@ async def create_credential_definition(
await endorser_controller.endorse_transaction.endorse_transaction(
tran_id=txn_record["transaction_id"]
)
bound_logger.info("Successfully endorsed transaction of revocation registry entry.")
bound_logger.info(
"Successfully endorsed transaction of revocation registry entry."
)
except CloudApiException as e:
bound_logger.error(
f"Error writing first accum value to ledger: {e}"
Expand Down

0 comments on commit 9050be1

Please sign in to comment.