Skip to content

Commit 0a1cb4b

Browse files
authored
Merge branch 'main' into cleanup_redis
2 parents 1caa912 + db6b769 commit 0a1cb4b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aries_cloudagent/config/ledger.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ async def fetch_genesis_transactions(genesis_url: str) -> str:
3131
headers["Content-Type"] = "application/json"
3232
LOGGER.info("Fetching genesis transactions from: %s", genesis_url)
3333
try:
34-
return await fetch(genesis_url, headers=headers)
34+
# Fetch from --genesis-url likely to fail in composed container setup
35+
# https://github.com/hyperledger/aries-cloudagent-python/issues/1745
36+
return await fetch(genesis_url, headers=headers, max_attempts=20)
3537
except FetchError as e:
3638
raise ConfigError("Error retrieving ledger genesis transactions") from e
3739

0 commit comments

Comments
 (0)