param

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	BlockVersion              uint8         `cbor:"1,keyasint"  json:"block_version"`
	BlockIntervalInSecond     int           `cbor:"2,keyasint"  json:"block_interval_in_second"`
	CommitteeSize             int           `cbor:"3,keyasint"  json:"committee_size"`
	BlockReward               amount.Amount `cbor:"4,keyasint"  json:"block_reward"`
	TransactionToLiveInterval uint32        `cbor:"5,keyasint"  json:"transaction_to_live_interval"`
	BondInterval              uint32        `cbor:"6,keyasint"  json:"bond_interval"`
	UnbondInterval            uint32        `cbor:"7,keyasint"  json:"unbond_interval"`
	SortitionInterval         uint32        `cbor:"8,keyasint"  json:"sortition_interval"`
	FeeFractionDeprecated     float64       `cbor:"9,keyasint"  json:"fee_fraction"`
	MinimumFeeDeprecated      amount.Amount `cbor:"10,keyasint" json:"minimum_fee"`
	MaximumFeeDeprecated      amount.Amount `cbor:"11,keyasint" json:"maximum_fee"`
	MinimumStake              amount.Amount `cobr:"12,keyasint" json:"minimum_stake"`
	MaximumStake              amount.Amount `cbor:"13,keyasint" json:"maximum_stake"`
}

func DefaultParams

func DefaultParams() *Params

func (*Params) BlockInterval added in v0.15.0

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

Jump to

Keyboard shortcuts

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