do not attempt block decryption in metadata processing if it is not encrypted
parent
85fdcab534
commit
1c80849c38
|
@ -256,6 +256,7 @@ class OnionrUtils:
|
|||
Read metadata from a block and cache it to the block database
|
||||
'''
|
||||
myBlock = Block(blockHash, self._core)
|
||||
if myBlock.isEncrypted:
|
||||
myBlock.decrypt()
|
||||
blockType = myBlock.getMetadata('type') # we would use myBlock.getType() here, but it is bugged with encrypted blocks
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue