fixed broken random IP binding and Improved Onionr code safety

This commit is contained in:
Kevin Froman 2019-09-08 19:21:36 -05:00
parent 8191854a2f
commit 57791c34a5
25 changed files with 70 additions and 48 deletions

View file

@ -120,7 +120,7 @@ def insert_block(data: Union[str, bytes], header: str ='txt',
# ensure expire is integer and of sane length
if type(expire) is not type(None):
assert len(str(int(expire))) < 20
if not len(str(int(expire))) < 20: raise ValueError('expire must be valid int less than 20 digits in length')
metadata['expire'] = expire
# send block data (and metadata) to POW module to get tokenized block data