Skip to content

Commit

Permalink
Fix ack during for auto endorsement
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Apr 11, 2024
1 parent 5bcb08b commit 3f3bd83
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 3f3bd83

Please sign in to comment.