Documentation
¶
Index ¶
Constants ¶
View Source
const AutoretrieveProviderBatchSize = uint(25000)
how many contents to include per advertisement for autoretrieve
View Source
const CacheDuration = time.Second * 10
View Source
const CachePurgeEveryDuration = time.Minute * 5
View Source
const CacheSize = 256 * 1024 * 1024 // 256MB
View Source
const ContentLocationLocal = "local"
View Source
const DealDuration = 1555200 - (2880 * 21)
DealDuration Making default deal duration be three weeks less than the maximum to ensure miners who start their deals early don't run into issues
View Source
const DefaultIndexerURL = "https://cid.contact"
View Source
const ExtendedCacheDuration = time.Minute * 60
View Source
const ExtendedCachePurgeEveryDuration = time.Minute * 120
View Source
const ExtendedCacheSize = 16 * 1024 * 1024 // 16MB
View Source
const MaxDealContentSize = int64(34_000_000_000)
MaxDealContentSize 31.66 GB
View Source
const MinDealContentSize = int64(1_100_000_000)
MinDealContentSize 1 GB
View Source
const MinSafeDealLifetime = 2880 * 21 // three weeks
View Source
const TokenExpiryDurationAdmin = time.Hour * 24 * 365 // 1 year
View Source
const TokenExpiryDurationDefault = time.Hour * 24 * 30 // 30 days
View Source
const TokenExpiryDurationLogin = time.Hour * 24 * 30 // 30 days
View Source
const TokenExpiryDurationPermanent = time.Hour * 24 * 365 * 100 // 100 years
View Source
const TokenExpiryDurationRegister = time.Hour * 24 * 7 // 1 week
View Source
const TopMinerSel = 15
Variables ¶
View Source
var DealMaxPrice abi.TokenAmount
View Source
var VerifiedDealMaxPrice = abi.NewTokenAmount(0)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.