constants

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2022 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AutoretrieveProviderBatchSize = uint(25000)

how many contents to include per advertisement for autoretrieve

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 MaxDealContentSize = int64(34_000_000_000)

MaxDealContentSize 31.66 GB

View Source
const MinDealContentSize = int64((4 << 30) * 9 / 10)

MinDealContentSize 3.6 GB 90% of the un-padded data size for a 4GB piece the 10% gap is to accommodate car file packing overhead, can probably do this better

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL