constants

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0, MIT Imports: 12 Imported by: 37

Documentation

Index

Constants

View Source
const (
	NetworkDefault  = 0
	NetworkMainnet  = 0x1
	Network2k       = 0x2
	NetworkDebug    = 0x3
	NetworkCalibnet = 0x4
	NetworkNerpa    = 0x5
	NetworkInterop  = 0x6
)
View Source
const ActorUpgradeNetworkVersion = network.Version4
View Source
const AllowableClockDriftSecs = uint64(1)
View Source
const BaseFeeMaxChangeDenom = 8 // 12.5%
View Source
const BlockGasLimit = 10_000_000_000

BlockGasLimit is the maximum amount of gas that can be used to execute messages in a single block.

View Source
const BlockGasTarget = BlockGasLimit / 2
View Source
const BlockMessageLimit = 10000
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 = "1.0.4"

BuildVersion is the local build version, set by build system

View Source
const DefaultConfidence = uint64(5)
View Source
const DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)

The multihash function identifier to use for content addresses.

View Source
const DefaultMessageWaitLookback = abi.ChainEpoch(100) // in most cases, this should be enough to avoid races.
View Source
const FilAllocStorageMining = uint64(1_100_000_000)
View Source
const FilBase = uint64(2_000_000_000)
View Source
const FilReserved = uint64(300_000_000)
View Source
const FilecoinPrecision = uint64(1_000_000_000_000_000_000)
View Source
const Finality = policy.ChainFinality
View Source
const ForkLengthThreshold = Finality

Epochs

View Source
const InitialBaseFee = 100e6
View Source
const LookbackNoLimit = abi.ChainEpoch(-1)
View Source
const MainNetBlockDelaySecs = uint64(builtin0.EpochDurationSeconds)
View Source
const MessageConfidence = uint64(5)

Epochs

View Source
const MinimumBaseFee = 100
View Source
const NewestNetworkVersion = network.Version13
View Source
const NoHeight = abi.ChainEpoch(-1)
View Source
const NoTimeout = math.MaxInt64
View Source
const PackingEfficiencyDenom = 5
View Source
const PackingEfficiencyNum = 4
View Source
const PropagationDelaySecs = uint64(6)
View Source
const StringEmpty = ""
View Source
const TicketRandomnessLookback = abi.ChainEpoch(1)

Epochs

View Source
const VerifSigCacheSize = 32000

Size of signature verification cache 32k keeps the cache around 10MB in size, max

View Source
const WRatioDen = uint64(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 (
	FullAPIVersion0 = newVer(1, 3, 0)
	FullAPIVersion1 = newVer(2, 1, 0)
)

semver versions of the rpc api exposed

View Source
var Clock = clock.New()

Clock is the global clock for the system. In standard builds, we use a real-time clock, which maps to the `time` package.

Tests that need control of time can replace this variable with clock.NewMock(). Always use real time for socket/stream deadlines. todo move this clock to clock package. constant package should refer other as little as possible

View Source
var DefaultCidBuilder = cid.V1Builder{Codec: cid.DagCBOR, MhType: DefaultHashFunction}

A builder for all blockchain CIDs. Note that sector commitments use a different scheme.

just for test

View Source
var DevRegisteredWindowPoStProof = abi.RegisteredPoStProof_StackedDrgWindow2KiBV1
View Source
var DevRegisteredWinningPoStProof = abi.RegisteredPoStProof_StackedDrgWinning2KiBV1
View Source
var DevSectorSize abi.SectorSize

DevSectorSize is a tiny sector useful only for testing.

View Source
var EightMiBSectorSize = abi.SectorSize(1 << 23)

EightMiBSectorSize contains 8MiB after sealing.

View Source
var ExpectedLeadersPerEpoch = builtin0.ExpectedLeadersPerEpoch

expect blocks number in a tipset

View Source
var FiveHundredTwelveMiBSectorSize = abi.SectorSize(512 << 20)

FiveHundredTwelveMiBSectorSize contain 512MiB after sealing.

View Source
var InitialFilReserved *big.Int
View Source
var InitialRewardBalance *big.Int
View Source
var InsecurePoStValidation = false

todo move this value to config

View Source
var ThirtyTwoGiBSectorSize = abi.SectorSize(1 << 35)

ThirtyTwoGiBSectorSize contain 32GiB after sealing.

Functions

func SetAddressNetwork

func SetAddressNetwork(n address.Network)

func UserVersion

func UserVersion() string

software version

Types

type Version

type Version uint32

Jump to

Keyboard shortcuts

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