fixed broken random IP binding and Improved Onionr code safety
This commit is contained in:
parent
8191854a2f
commit
57791c34a5
25 changed files with 70 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue