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.7"
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 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 MaybeGenesis ¶
func MaybeGenesis() []byte
func ParametersJson ¶ added in v0.2.1
func ParametersJson() []byte
func SupportedSectorSize ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.