Documentation ¶
Index ¶
Constants ¶
View Source
const BucketingEnabled = true
View Source
const CidToKeyMapPrefix = "map/cidKey/"
View Source
const ContentLocationLocal = "local"
View Source
const DealDuration = 1555200 - (2880 * 21)
Making default deal duration be three weeks less than the maximum to ensure miners who start their deals early dont run into issues
View Source
const DefaultContentSizeLimit = 34_000_000_000
View Source
const KeyToCidMapPrefix = "map/keyCid/"
View Source
const KeyToMetadataMapPrefix = "map/keyMD/"
View Source
const LatestAdvKey = "sync/adv/"
View Source
const LinksCachePath = "/cache/links"
View Source
const MaxBucketItems = 10000
View Source
const MaxContentAge = time.Hour * 24 * 7
maximum amount of time a piece of content will go without either being aggregated or having a deal made for it
View Source
const MaxStagingZoneLifetime = time.Hour * 8
amount of time a staging zone will remain open before we aggregate it into a piece of content
View Source
const MinDealSize = 256 << 20
View Source
const MinSafeDealLifetime = (2880 * 21) // three weeks
View Source
const QueryNewCIDs string = "" /* 156-byte string literal not displayed */
View Source
const StagingZoneKeepAlive = time.Minute * 40
staging zones will remain open for at least this long after the last piece of content is added to them (unless they are full)
View Source
const TopMinerSel = 15
Variables ¶
View Source
var IndividualDealThreshold = (abi.PaddedPieceSize(4<<30).Unpadded() * 9) / 10
90% of the unpadded data size for a 4GB piece the 10% gap is to accommodate car file packing overhead, can probably do this better
View Source
var MaxStagingZoneSizeLimit = int64((abi.PaddedPieceSize(16<<30).Unpadded() * 9) / 10)
14.29 Gib
View Source
var MinStagingZoneSizeLimit = int64(MaxStagingZoneSizeLimit - (1 << 30))
13.29 GiB
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.