Skip to content

Commit

Permalink
Fix ack during for auto endorsement (openwallet-foundation#2883)
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
Co-authored-by: Stephen Curran <[email protected]>
  • Loading branch information
jamshale and swcurran authored Apr 12, 2024
1 parent 13f16bd commit f25f3d2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,14 @@ async def receive_transaction_acknowledgement(
jobs = await connection_record.metadata_get(session, "transaction_jobs")
except StorageNotFoundError as err:
raise TransactionManagerError(err.roll_up) from err

is_auto_endorser = self._profile.settings.get(
"endorser.endorser"
) and self._profile.settings.get("endorser.auto_endorse")

if is_auto_endorser:
return transaction

if not jobs:
raise TransactionManagerError(
"The transaction related jobs are not set up in "
Expand Down

0 comments on commit f25f3d2

Please sign in to comment.