Skip to content

Commit

Permalink
Log quorum
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Sep 22, 2023
1 parent 34047e0 commit f06d46f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw_utils/ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ async def _upload(self, coros: list) -> str:
ipfs_hash = max(ipfs_hashes, key=ipfs_hashes.get) # type: ignore
count = ipfs_hashes[ipfs_hash]
if count < self.quorum:
logger.warning('quorum: %s, ipfs_hashes: %s', self.quorum, ipfs_hashes)
raise IpfsException('Failed to reach the uploads quorum')

return ipfs_hash
Expand Down

0 comments on commit f06d46f

Please sign in to comment.