param

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDelegateOwnerRewardShare = amount.Amount(0.7 * amount.NanoPACPerPAC)

MaxDelegateOwnerRewardShare is the maximum stake-owner share of the block reward under PIP-49 validator delegation (0.7 PAC in nano PAC).

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	BlockVersion              protocol.Version
	BlockIntervalInSecond     int
	MaxTransactionsPerBlock   int
	CommitteeSize             int
	BlockReward               amount.Amount
	TransactionToLiveInterval uint32
	BondInterval              uint32
	UnbondInterval            uint32
	SortitionInterval         uint32
	MinimumStake              amount.Amount
	MaximumStake              amount.Amount
	FoundationReward          amount.Amount
	FoundationAddress         []crypto.Address
}

Params is the parameters of the Pactus protocol. These parameters are fixed among all the nodes in the network. TODO: Save them in DB and load them on startng the node.

func FromGenesis

func FromGenesis(genDoc *genesis.Genesis) *Params

func (*Params) BlockInterval

func (p *Params) BlockInterval() time.Duration

Jump to

Keyboard shortcuts

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