Documentation ¶
Index ¶
- Constants
- Variables
- func BlocksTopic(netName dtypes.NetworkName) string
- func BuiltinBootstrap() ([]peer.AddrInfo, error)
- func DefaultSectorSize() abi.SectorSize
- func DhtProtocolName(netName dtypes.NetworkName) protocol.ID
- func DrandBootstrap() ([]peer.AddrInfo, error)
- func MaybeGenesis() []byte
- func MessagesTopic(netName dtypes.NetworkName) string
- func ParametersJSON() []byte
- func UserVersion() string
- type Version
Constants ¶
const ( BuildDefault = 0 Build2k = 0x1 BuildDebug = 0x3 )
const AllowableClockDriftSecs = uint64(1)
const BadBlockCacheSize = 1 << 15
Sync
const BlockDelaySecs = uint64(builtin.EpochDurationSeconds)
const BlockGasLimit = 100_000_000_000
const BlockMessageLimit = 512
TODO: If this is gonna stay, it should move to specs-actors
const BlsSignatureCacheSize = 40000
assuming 4000 messages per round, this lets us not lose any messages across a 10 block reorg.
const BuildVersion = "0.4.1"
BuildVersion is the local build version, set by build system
const FilecoinPrecision = uint64(1_000_000_000_000_000_000)
const Finality = miner.ChainFinalityish
Epochs
const ForkLengthThreshold = Finality
Epochs
const MaxSealLookback = SealRandomnessLookbackLimit + 2000 // TODO: Get from specs-actors
Maximum lookback that randomness can be sourced from for a seal proof submission
const MessageConfidence = uint64(5)
const MiningRewardTotal = uint64(1_400_000_000)
const PropagationDelaySecs = uint64(6)
const SealRandomnessLookback = Finality
Epochs
const SealRandomnessLookbackLimit = SealRandomnessLookback + 2000 // TODO: Get from spec specs-actors
Epochs
const TicketRandomnessLookback = abi.ChainEpoch(1)
Epochs
const TotalFilecoin = uint64(2_000_000_000)
const UnixfsChunkSize uint64 = 1 << 20
const UnixfsLinksPerLevel = 1024
const VerifSigCacheSize = 32000
Size of signature verification cache 32k keeps the cache around 10MB in size, max
const WRatioDen = uint64(2)
const WRatioNum = int64(1)
constants for Weight calculation The ratio of weight contributed by short-term vs long-term factors in a given round
const WinningPoStSectorSetLookback = abi.ChainEpoch(10)
Variables ¶
var BlocksPerEpoch = uint64(builtin.ExpectedLeadersPerEpoch)
Blocks (e)
var BuildType int
var CurrentCommit string
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.
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"}`, }
var InitialRewardBalance *big.Int
var InsecurePoStValidation = false
Functions ¶
func BlocksTopic ¶ added in v0.3.0
func BlocksTopic(netName dtypes.NetworkName) string
func BuiltinBootstrap ¶
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 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