From c81f2b01ffc6d6c7fee9cd48814bdc3772417f76 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 7 Jun 2007 13:14:14 -0700 Subject: [PATCH] encode.py: fix generation of plaintext/crypttext merkle trees --- src/allmydata/encode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 444d1e45..61a0c5a0 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -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 -- 2.45.2