+ added clear offline peers to new communicator
+ fixed unable to insert unencrypted block
This commit is contained in:
parent
829dba45cc
commit
9968a72fbc
2 changed files with 11 additions and 2 deletions
|
|
@ -683,10 +683,10 @@ class Core:
|
|||
|
||||
jsonMeta = json.dumps(meta)
|
||||
|
||||
if encryptType in ('asym', 'sym'):
|
||||
if encryptType in ('asym', 'sym', ''):
|
||||
metadata['encryptType'] = encryptType
|
||||
else:
|
||||
raise onionrexceptions.InvalidMetadata('encryptType must be asym or sym')
|
||||
raise onionrexceptions.InvalidMetadata('encryptType must be asym or sym, or blank')
|
||||
|
||||
# sign before encrypt, as unauthenticated crypto should not be a problem here
|
||||
if sign:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue