From 61eb730f80493d6c98b7ee36a429ffaea6e6684b Mon Sep 17 00:00:00 2001 From: YoungHypo Date: Mon, 25 Nov 2024 13:21:46 -0800 Subject: [PATCH] Add a comment for peer channel fetch Signed-off-by: YoungHypo --- src/api-engine/api/lib/peer/channel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api-engine/api/lib/peer/channel.py b/src/api-engine/api/lib/peer/channel.py index 668baae0..e3b000a3 100644 --- a/src/api-engine/api/lib/peer/channel.py +++ b/src/api-engine/api/lib/peer/channel.py @@ -127,6 +127,8 @@ def fetch(self, block_path, channel, orderer_general_url, max_retries=5, retry_i ] LOG.info(" ".join(command)) + + # Retry fetching the block up to max_retries times for attempt in range(1, max_retries+1): try: LOG.debug("Attempt %d/%d to fetch block", attempt, max_retries)