From a61178f425a5d3f52cc91bfa99b65856aa3f3a8a Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 30 Apr 2007 06:00:10 -0700
Subject: [PATCH] raise the limit on the number of hashes when retrieving them,
 too

---
 src/allmydata/interfaces.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py
index f6a14e22..346019ab 100644
--- a/src/allmydata/interfaces.py
+++ b/src/allmydata/interfaces.py
@@ -71,9 +71,9 @@ class RIBucketReader(RemoteInterface):
         """
         return ShareData
     def get_block_hashes():
-        return ListOf(Hash)
+        return ListOf(Hash, maxLength=2**20)
     def get_share_hashes():
-        return ListOf(TupleOf(int, Hash))
+        return ListOf(TupleOf(int, Hash), maxLength=2**20)
 
 class RIStorageServer(RemoteInterface):
     def allocate_buckets(verifierid=Verifierid,
-- 
2.45.2