config

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Debug        = true
	BuildVersion = "v0.14.3-BUILD_VERSION"

	MainnetId = "6430225c42bb015b4da03102fa962e4f4ef3969e03e04345db229f8377ef7997"

	SnapshotRoundGap           = uint64(3 * time.Second)
	SnapshotReferenceThreshold = 10
	SnapshotSyncRoundThreshold = 100
	SnapshotRoundSize          = 200

	CheckpointDuration        = 10 * time.Minute
	CheckpointPunishmentGrade = 7

	TransactionMaximumSize = 1024 * 1024
	WithdrawalClaimFee     = "0.0001"
	GossipSize             = 3

	KernelMinimumNodesCount = 7

	KernelMintTimeBegin = 7
	KernelMintTimeEnd   = 9

	KernelNodeAcceptTimeBegin     = 13
	KernelNodeAcceptTimeEnd       = 19
	KernelNodePledgePeriodMinimum = 12 * time.Hour
	KernelNodeAcceptPeriodMinimum = 12 * time.Hour
	KernelNodeAcceptPeriodMaximum = 7 * 24 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Custom added in v0.2.18

type Custom struct {
	Node struct {
		Signer               crypto.Key `toml:"-"`
		SignerStr            string     `toml:"signer-key"`
		ConsensusOnly        bool       `toml:"consensus-only"`
		KernelOprationPeriod int        `toml:"kernel-operation-period"`
		MemoryCacheSize      int        `toml:"memory-cache-size"`
		CacheTTL             int        `toml:"cache-ttl"`
	} `toml:"node"`
	Storage struct {
		ValueLogGC bool `toml:"value-log-gc"`
	} `toml:"storage"`
	Network struct {
		Listener        string   `toml:"listener"`
		GossipNeighbors bool     `toml:"gossip-neighbors"`
		Peers           []string `toml:"peers"`
	} `toml:"network"`
	RPC struct {
		Runtime bool `toml:"runtime"`
	} `toml:"rpc"`
	Dev struct {
		Profile bool `toml:"profile"`
	} `toml:"dev"`
}

func Initialize added in v0.2.18

func Initialize(file string) (*Custom, error)

Jump to

Keyboard shortcuts

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