build

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AllowableClockDrift = 1

Seconds

View Source
const BadBlockCacheSize = 1 << 15

Sync

Seconds

View Source
const BlockGasLimit = 100_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.3.0"

BuildVersion is the local build version, set by build system

View Source
const FilecoinPrecision = 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 MiningRewardTotal = 1_400_000_000
View Source
const PropagationDelay = 6
View Source
const SealRandomnessLookback = Finality

Epochs

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

Epochs

View Source
const TicketRandomnessLookback = 1

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

View Source
const WinningPoStSectorSetLookback = 10

Variables

Blocks (e)

View Source
var CurrentCommit string
View Source
var DrandCoeffs = []string{
	"82c279cce744450e68de98ee08f9698a01dd38f8e3be3c53f2b840fb9d09ad62a0b6b87981e179e1b14bc9a2d284c985",
	"82d51308ad346c686f81b8094551597d7b963295cbf313401a93df9baf52d5ae98a87745bee70839a4d6e65c342bd15b",
	"94eebfd53f4ba6a3b8304236400a12e73885e5a781509a5c8d41d2e8b476923d8ea6052649b3c17282f596217f96c5de",
	"8dc4231e42b4edf39e86ef1579401692480647918275da767d3e558c520d6375ad953530610fd27daf110187877a65d0",
}
View Source
var InitialRewardBalance *big.Int
View Source
var InsecurePoStValidation = false
View Source
var UserVersion = BuildVersion + CurrentCommit

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 MaybeGenesis

func MaybeGenesis() []byte

func MessagesTopic added in v0.3.0

func MessagesTopic(netName dtypes.NetworkName) string

func ParametersJson added in v0.2.1

func ParametersJson() []byte

Types

type Version

type Version uint32
var APIVersion Version = newVer(0, 3, 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