constants

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0, MIT Imports: 14 Imported by: 40

Documentation

Index

Constants

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.2.2"

BuildVersion is the local build version, set by build system

View Source
const DefaultConfidence = abi.ChainEpoch(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 InitialBaseFee = 100e6
View Source
const LookbackNoLimit = abi.ChainEpoch(-1)
View Source
const MessageConfidence = abi.ChainEpoch(5)

Epochs

View Source
const MinimumBaseFee = 100
View Source
const NewestNetworkVersion = network.Version8
View Source
const PackingEfficiencyDenom = 5
View Source
const PackingEfficiencyNum = 4
View Source
const PropagationDelaySecs = uint64(6)
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 (
	FullAPIVersion   = newVer(1, 0, 0)
	MinerAPIVersion  = newVer(1, 0, 0)
	WorkerAPIVersion = newVer(1, 0, 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.

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.

View Source
var DefaultDefaultMaxFee = MustParseFIL("0.007")
View Source
var DefaultSimultaneousTransfers = uint64(20)
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
View Source
var ThirtyTwoGiBSectorSize = abi.SectorSize(1 << 35)

ThirtyTwoGiBSectorSize contain 32GiB after sealing.

View Source
var ZeroAddress = MustParseAddress("f3yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaby2smx7a")

the 'f' prefix doesn't matter

Functions

func MustParseAddress

func MustParseAddress(addr string) address.Address

func MustParseFIL

func MustParseFIL(s string) big2.Int

func ParseFIL

func ParseFIL(s string) (big2.Int, error)

func SetAddressNetwork

func SetAddressNetwork(n address.Network)

func UserVersion

func UserVersion() string

Types

type NodeType

type NodeType int
const (
	NodeUnknown NodeType = iota

	NodeFull
	NodeMiner
	NodeWorker
)
var RunningNodeType NodeType

type Version

type Version uint32

func VersionForType

func VersionForType(nodeType NodeType) (Version, error)

Jump to

Keyboard shortcuts

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