build

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0, MIT Imports: 10 Imported by: 176

Documentation

Index

Constants

View Source
const AllowableClockDrift = 1

Seconds

View Source
const BadBlockCacheSize = 1 << 15

Sync

View Source
const BlockDelay = 45

Seconds

View Source
const BlockMessageLimit = 512
View Source
const BlocksPerEpoch = 5

Blocks (e)

View Source
const BlsSignatureCacheSize = 40000

assuming 4000 messages per round, this lets us not lose any messages across a 10 block reorg.

View Source
const BuildVersion = "0.2.8"

BuildVersion is the local build version, set by build system

View Source
const CollateralPrecision = 1000
View Source
const EcRandomnessLookback = 300

Epochs

View Source
const FallbackPoStDelay = 30

FallbackPoStDelay is the number of epochs the miner needs to wait after

ElectionPeriodStart before starting fallback post computation

Epochs

View Source
const FilecoinPrecision = 1_000_000_000_000_000_000
View Source
const Finality = 500

Epochs

View Source
const ForkBlizzardHeight = 6288
View Source
const ForkBootyBayHeight = 11000
View Source
const ForkFrigidHeight = 7950
View Source
const ForkLengthThreshold = Finality

Epochs

View Source
const ForkMissingSnowballs = 34000
View Source
const InitialRewardStr = "153856861913558700202"
View Source
const InteractivePoRepConfidence = 6

Epochs

View Source
const InteractivePoRepDelay = 8

Epochs

View Source
const MaxSealLookback = SealRandomnessLookbackLimit + 2000

Maximum lookback that randomness can be sourced from for a seal proof submission

View Source
const MinerMaxSectors = 1 << 48
View Source
const MiningRewardTotal = 1_400_000_000
View Source
const PaymentChannelClosingDelay = 6 * 60 * 60 / BlockDelay // six hours

Epochs

View Source
const PerCapitaCollateralProportion = 1
View Source
const PowerCollateralProportion = 5
View Source
const PropagationDelay = 6
View Source
const SealRandomnessLookback = Finality

Epochs

View Source
const SealRandomnessLookbackLimit = SealRandomnessLookback + 2000

Epochs

View Source
const SectorChallengeRatioDiv = 25
View Source
const SlashablePowerDelay = 200

SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after which the miner is slashed

Epochs

View Source
const TotalFilecoin = 2_000_000_000
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1024
View Source
const WRatioDen = 2
View Source
const WRatioNum = int64(1)

constants for Weight calculation The ratio of weight contributed by short-term vs long-term factors in a given round

Variables

View Source
var CurrentCommit string
View Source
var InitialReward *big.Int
View Source
var InsecurePoStValidation = false
View Source
var MinimumMinerPower uint64 = 512 << 30 // 512GB

Bytes

View Source
var SectorSizes = []uint64{
	32 << 30,
}
View Source
var UserVersion = BuildVersion + CurrentCommit

Functions

func BuiltinBootstrap

func BuiltinBootstrap() ([]peer.AddrInfo, error)

func MaybeGenesis

func MaybeGenesis() []byte

func ParametersJson added in v0.2.1

func ParametersJson() []byte

func SupportedSectorSize

func SupportedSectorSize(ssize uint64) bool

Types

type Version

type Version uint32
var APIVersion Version = newVer(0, 1, 6)

APIVersion is a semver version of the rpc api exposed

func (Version) EqMajorMinor added in v0.1.5

func (ve Version) EqMajorMinor(v2 Version) bool

func (Version) Ints added in v0.1.5

func (ve Version) Ints() (uint32, uint32, uint32)

Ints returns (major, minor, patch) versions

func (Version) String added in v0.1.5

func (ve Version) String() string

Jump to

Keyboard shortcuts

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