mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
encode.py: fix generation of plaintext/crypttext merkle trees
This commit is contained in:
parent
a383c17444
commit
c81f2b01ff
@ -259,8 +259,9 @@ class Encoder(object):
|
||||
crypttext_hasher.update(encrypted_piece)
|
||||
chunks.append(encrypted_piece)
|
||||
|
||||
self._plaintext_hashes.append(plaintext_hash(input_piece))
|
||||
self._crypttext_hashes.append(crypttext_hash(encrypted_piece))
|
||||
self._plaintext_hashes.append(plaintext_hasher.digest())
|
||||
self._crypttext_hashes.append(crypttext_hasher.digest())
|
||||
|
||||
d = codec.encode(chunks)
|
||||
d.addCallback(self._encoded_segment, segnum)
|
||||
return d
|
||||
|
Loading…
Reference in New Issue
Block a user