removed bytes conversion on downloadblock data
parent
23d092fb94
commit
c562fabbbd
|
@ -245,7 +245,7 @@ class OnionrCommunicate:
|
||||||
data = b''
|
data = b''
|
||||||
if data == False or len(data) > 10000000:
|
if data == False or len(data) > 10000000:
|
||||||
continue
|
continue
|
||||||
hasher.update(data.encode())
|
hasher.update(data)
|
||||||
digest = hasher.hexdigest()
|
digest = hasher.hexdigest()
|
||||||
if type(digest) is bytes:
|
if type(digest) is bytes:
|
||||||
digest = digest.decode()
|
digest = digest.decode()
|
||||||
|
|
Loading…
Reference in New Issue