build

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0, MIT Imports: 18 Imported by: 176

Documentation

Index

Constants

View Source
const (
	BuildDefault = 0
	Build2k      = 0x1
	BuildDebug   = 0x3
)
View Source
const AllowableClockDriftSecs = uint64(1)
View Source
const BadBlockCacheSize = 1 << 15

Sync

View Source
const BlockGasLimit = 100_000_000_000
View Source
const BlockMessageLimit = 512

TODO: If this is gonna stay, it should move to specs-actors

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

BuildVersion is the local build version, set by build system

View Source
const FilecoinPrecision = uint64(1_000_000_000_000_000_000)

Epochs

View Source
const ForkLengthThreshold = Finality

Epochs

View Source
const MaxSealLookback = SealRandomnessLookbackLimit + 2000 // TODO: Get from specs-actors

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

View Source
const MessageConfidence = uint64(5)
View Source
const MiningRewardTotal = uint64(1_400_000_000)
View Source
const PropagationDelaySecs = uint64(6)
View Source
const SealRandomnessLookback = Finality

Epochs

View Source
const SealRandomnessLookbackLimit = SealRandomnessLookback + 2000 // TODO: Get from spec specs-actors

Epochs

View Source
const TicketRandomnessLookback = abi.ChainEpoch(1)

Epochs

View Source
const TotalFilecoin = uint64(2_000_000_000)
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1024
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

View Source
const WinningPoStSectorSetLookback = abi.ChainEpoch(10)

Variables

Blocks (e)

View Source
var BuildType int
View Source
var CurrentCommit string
View Source
var DisableBuiltinAssets = false

DisableBuiltinAssets disables the resolution of go.rice boxes that store built-in assets, such as proof parameters, bootstrap peers, genesis blocks, etc.

When this value is set to true, it is expected that the user will provide any such configurations through the Lotus API itself.

This is useful when you're using Lotus as a library, such as to orchestrate test scenarios, or for other purposes where you don't need to use the defaults shipped with the binary.

For this flag to be effective, it must be enabled _before_ instantiating Lotus.

View Source
var DrandConfig = dtypes.DrandConfig{
	Servers: []string{
		"https://pl-eu.testnet.drand.sh",
		"https://pl-us.testnet.drand.sh",
		"https://pl-sin.testnet.drand.sh",
	},
	ChainInfoJSON: `{"public_key":"922a2e93828ff83345bae533f5172669a26c02dc76d6bf59c80892e12ab1455c229211886f35bb56af6d5bea981024df","period":25,"genesis_time":1590445175,"hash":"138a324aa6540f93d0dad002aa89454b1bec2b6e948682cde6bd4db40f4b7c9b"}`,
}
View Source
var InitialRewardBalance *big.Int
View Source
var InsecurePoStValidation = false

Functions

func BlocksTopic added in v0.3.0

func BlocksTopic(netName dtypes.NetworkName) string

func BuiltinBootstrap

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

func DefaultSectorSize added in v0.3.0

func DefaultSectorSize() abi.SectorSize

func DhtProtocolName added in v0.3.0

func DhtProtocolName(netName dtypes.NetworkName) protocol.ID

func DrandBootstrap added in v0.4.0

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

func MaybeGenesis

func MaybeGenesis() []byte

func MessagesTopic added in v0.3.0

func MessagesTopic(netName dtypes.NetworkName) string

func ParametersJSON added in v0.3.1

func ParametersJSON() []byte

func UserVersion added in v0.1.1

func UserVersion() string

Types

type Version

type Version uint32
var APIVersion Version = newVer(0, 5, 0)

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