From: Zooko O'Whielacronx Date: Tue, 11 Sep 2007 18:29:18 +0000 (-0700) Subject: loosen constraint on share data size X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv.html?a=commitdiff_plain;h=09ff5af99c179b02442beed1f9bd424bae93a2e2;p=tahoe-lafs%2Ftahoe-lafs.git loosen constraint on share data size --- diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index e5b08aa5..993cbd12 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -15,7 +15,9 @@ StorageIndex = StringConstraint(16) URI = StringConstraint(300) # kind of arbitrary DirnodeURI = StringConstraint(300, regexp=r'^URI:DIR(-RO)?:pb://[a-z0-9]+@[^/]+/[^:]+:[a-z0-9]+$') MAX_BUCKETS = 200 # per peer -ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB + +# MAX_SEGMENT_SIZE in encode.py is 1 MiB (this constraint allows k = 1) +ShareData = StringConstraint(2**20) URIExtensionData = StringConstraint(1000) LeaseRenewSecret = Hash # used to protect bucket lease renewal requests LeaseCancelSecret = Hash # used to protect bucket lease cancellation requests