params

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddressVersion is the base58 encode version adopted
	AddressVersion byte = 92

	// PublicKeyVersion is the base58 encode version adopted for public keys
	PublicKeyVersion byte = 93

	// PrivateKeyVersion is the base58 encode version adopted for private keys
	PrivateKeyVersion byte = 94
)

Variables

View Source
var (
	// MempoolSenderTxLimit is the number of unprocessed tx a sender can have in the pool (and its cache)
	MempoolSenderTxLimit = 64

	// MempoolTxTTL is the duration within which an transaction can remain in the pool
	MempoolTxTTL = 2 * time.Hour
)
View Source
var (
	// FeePerByte is the cost per byte of a transaction
	FeePerByte = decimal.NewFromFloat(0.00001)

	// MinTicketMatDur is the number of blocks that must be created
	// before a ticket is considered matured.
	MinTicketMatDur = 3

	// MaxTicketActiveDur is the number of blocks before a matured
	// ticket is considered spent or expired.
	MaxTicketActiveDur = 100

	// NumBlocksInThawPeriod is the number of blocks a expired ticket will
	// exist for before it can be unbonded
	NumBlocksInThawPeriod = 10

	// MinValidatorsTicketPrice is the minimum price of a ticket
	MinValidatorsTicketPrice = float64(100)

	// MaxValTicketsPerBlock is the max number of validators
	// ticket transaction a block can include.
	MaxValTicketsPerBlock = 1

	// NumBlocksPerEpoch is the number of blocks in an epoch
	NumBlocksPerEpoch = 5

	// NumBlocksToEffectValChange is the number of block tendermint uses to
	// effect validation change.
	NumBlocksToEffectValChange = 2

	// MaxValidatorsPerEpoch is the maximum number validators per epoch
	MaxValidatorsPerEpoch = 1

	// MinDelegatorCommission is the number of percentage delegators pay validators
	MinDelegatorCommission = decimal.NewFromFloat(10)

	// MinHostStake is the minimum stake for a host ticket
	MinHostStake = decimal.NewFromFloat(10)

	// NumBlocksInHostThawPeriod is the number of blocks before a host stake
	// is unbonded
	NumBlocksInHostThawPeriod = 10

	// NumTopHostsLimit is maximum the number of top hosts
	NumTopHostsLimit = 21

	// TreasuryAddress is the address where treasury-bound payments are deposited
	TreasuryAddress = "e4Tkr4AMxhPPjptDSMzX98F2BwHvQM2DKx"

	// TxRepoCreateMaxCharDesc is the maximum character for a repo description
	TxRepoCreateMaxCharDesc = 140
)

Block and State Config

View Source
var (
	// NamespaceRegFee is the amount of native coin required to obtain a
	// repo namespace
	NamespaceRegFee = decimal.NewFromFloat(1)

	// NamespaceTTL is the number of blocks of a namespace life span
	NamespaceTTL = 10

	// NamespaceGraceDur is the number of blocks before a namespace expires
	NamespaceGraceDur = 10
)

Namespace config

View Source
var (
	// PushPoolCap is the pool transaction capacity
	PushPoolCap = 1000

	// PushPoolCleanUpInt is duration between each push pool clean-up operation
	PushPoolCleanUpInt = 30 * time.Minute

	// PushPoolItemTTL is the maximum life time of an item in the push pool
	PushPoolItemTTL = 1 * time.Hour

	// PushObjectsSendersCacheSize is the max size for push note senders cache
	PushObjectsSendersCacheSize = 5000

	// PushNotesEndorsementsCacheSize is the max size for push note senders cache
	PushNotesEndorsementsCacheSize = 5000

	// RecentlySeenPacksCacheSize is the max size for the cache storing seen pack IDs
	RecentlySeenPacksCacheSize = 5000

	// NotesReceivedCacheSize is the max size of the cache that stores IDs of notes recently received
	NotesReceivedCacheSize = 10000

	// PushEndorseQuorumSize is the minimum number of PushEnds a push note requires for approval
	PushEndorseQuorumSize = 2

	// RepoProposalTTL is the number of blocks a repo proposal can remain active
	RepoProposalTTL = uint64(10)

	// DefaultRepoProposalQuorum is the minimum percentage of voters required to consider a proposal valid.
	DefaultRepoProposalQuorum = float64(10)

	// DefaultRepoProposalThreshold is the minimum percentage required to consider a
	// proposal accepted ("YES" voted)
	DefaultRepoProposalThreshold = float64(51)

	// DefaultRepoProposalVetoQuorum is the minimum percentage required for veto
	// members to overturn a "Yes" quorum
	DefaultRepoProposalVetoQuorum = float64(33)

	// DefaultRepoProposalVetoOwnersQuorum is the minimum percentage required for veto
	// members to overturn a "Yes" quorum in a proposal where stakeholders and
	// owners are eligible to vote
	DefaultRepoProposalVetoOwnersQuorum = float64(0)

	// DefaultMinProposalFee is the minimum fee to be paid for each new proposal
	// NOTE: This should probably be set to zero, otherwise every proposal (even
	// by owners) will require an additional fee.
	DefaultMinProposalFee = float64(0)

	// HelmProposalFeeSplit is the percentage of proposal fee distributed to the helm repo
	HelmProposalFeeSplit = 0.2

	// TargetRepoProposalFeeSplit is the percentage of proposal fee distributed to the
	// repo that received and resolved a proposal
	TargetRepoProposalFeeSplit = 0.8

	// MaxPushFileSize is the maximum size of files in a push request
	MaxPushFileSize = 1024 * 1024 * 50 // 50 MB

	// MaxRepoSize is the maximum size of a repository
	MaxRepoSize = 1024 * 1024 * 300 // 300 MB
)

Remote config

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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