build

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0, MIT Imports: 20 Imported by: 176

Documentation

Index

Constants

View Source
const (
	MajorMask = 0xff0000
	MinorMask = 0xffff00
	PatchMask = 0xffffff

	MajorOnlyMask = 0xff0000
	MinorOnlyMask = 0x00ff00
	PatchOnlyMask = 0x0000ff
)
View Source
const APIVersion = 0x000100

APIVersion is a hex semver version of the rpc api exposed

M M  P
A I  A
J N  T
O O  C
R R  H
|\vv/|
vv  vv
View Source
const AllowableClockDrift = BlockDelay * 2

Seconds

View Source
const BadBlockCacheSize = 1 << 15

Sync

View Source
const BlockDelay = 45

Seconds

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 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 ForkLengthThreshold = Finality

Epochs

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

Epochs

View Source
const InteractivePoRepDelay = 8

Epochs

View Source
const MaxFallbackPostChallengeCount = 10
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

1 / n

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 Version = "0.1.0"

Version is the local build version, set by build system

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 InitialReward *big.Int
View Source
var InsecurePoStValidation = false
View Source
var MinimumMinerPower uint64 = 512 << 30 // 512GB

Bytes

View Source
var SectorSizes = []uint64{
	1 << 30,
	32 << 30,
}

Functions

func BuiltinBootstrap

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

func GetParams

func GetParams(storageSize uint64) error

func MaybeGenesis

func MaybeGenesis() []byte

func SupportedSectorSize

func SupportedSectorSize(ssize uint64) bool

func VersionInts

func VersionInts(version uint32) (uint32, uint32, uint32)

VersionInts returns (major, minor, patch) versions

Types

This section is empty.

Jump to

Keyboard shortcuts

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