fix mixmate indent
parent
c2b7246048
commit
fbcb95be9e
|
@ -41,7 +41,7 @@ def block_mixer(upload_list: List[onionrtypes.BlockHash],
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if time.time() - bl.claimedTime > onionrvalues.BLOCK_POOL_MAX_AGE:
|
if time.time() - bl.claimedTime > onionrvalues.BLOCK_POOL_MAX_AGE:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
pass
|
||||||
if block_to_mix:
|
if block_to_mix:
|
||||||
|
|
|
@ -83,7 +83,9 @@ class Block:
|
||||||
self.bcontent = encryption.pub_key_decrypt(self.bcontent, encodedData=encodedData)
|
self.bcontent = encryption.pub_key_decrypt(self.bcontent, encodedData=encodedData)
|
||||||
except (binascii.Error, ValueError) as e:
|
except (binascii.Error, ValueError) as e:
|
||||||
self.bcontent = encryption.pub_key_decrypt(self.bcontent, encodedData=False)
|
self.bcontent = encryption.pub_key_decrypt(self.bcontent, encodedData=False)
|
||||||
|
|
||||||
bmeta = encryption.pub_key_decrypt(self.bmetadata, encodedData=encodedData)
|
bmeta = encryption.pub_key_decrypt(self.bmetadata, encodedData=encodedData)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
bmeta = bmeta.decode()
|
bmeta = bmeta.decode()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in New Issue