removed bytes conversion on downloadblock data
This commit is contained in:
parent
23d092fb94
commit
c562fabbbd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue