reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for the large blocks that 3-of-10 produces

This commit is contained in:
Brian Warner 2007-07-16 13:48:34 -07:00
parent e2e3b19a37
commit 20c980d02b
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class Encoder(object):
NEEDED_SHARES = 25
SHARES_OF_HAPPINESS = 75
TOTAL_SHARES = 100
MAX_SEGMENT_SIZE = 2*MiB
MAX_SEGMENT_SIZE = 1*MiB
def __init__(self, options={}):
object.__init__(self)

View File

@ -14,7 +14,7 @@ FURL = StringConstraint(1000)
StorageIndex = StringConstraint(32)
URI = StringConstraint(300) # kind of arbitrary
MAX_BUCKETS = 200 # per peer
ShareData = StringConstraint(700000) # 2MB segment / k=3 = 670kB
ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB
URIExtensionData = StringConstraint(1000)
class RIIntroducerClient(RemoteInterface):