Fix mixmate and sneakernet

This commit is contained in:
Kevin Froman 2020-10-14 00:07:41 +00:00
parent 2291d5a5f2
commit e0f59784b1
4 changed files with 19 additions and 6 deletions

View file

@ -39,7 +39,10 @@ def block_mixer(upload_list: List[onionrtypes.BlockHash],
"""
bl = onionrblockapi.Block(block_to_mix)
if time.time() - bl.claimedTime > onionrvalues.BLOCK_POOL_MAX_AGE:
try:
if time.time() - bl.claimedTime > onionrvalues.BLOCK_POOL_MAX_AGE:
raise ValueError
except TypeError:
pass
if block_to_mix:
upload_list.append(block_to_mix)