removed bytes conversion on downloadblock data

master
Kevin Froman 2018-04-22 20:56:20 -05:00
parent 23d092fb94
commit c562fabbbd
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 1 additions and 1 deletions

View File

@ -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()