Skip to content

Commit

Permalink
Add a comment for peer channel fetch
Browse files Browse the repository at this point in the history
Signed-off-by: YoungHypo <haiboyang@smail.nju.edu.cn>
  • Loading branch information
YoungHypo committed Nov 25, 2024
1 parent 7867eca commit 61eb730
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api-engine/api/lib/peer/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61eb730

Please sign in to comment.