param

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 1 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"`
	BlockTimeInSecond         int     `cbor:"2,keyasint"`
	CommitteeSize             int     `cbor:"3,keyasint"`
	BlockReward               int64   `cbor:"4,keyasint"`
	TransactionToLiveInterval uint32  `cbor:"5,keyasint"`
	BondInterval              uint32  `cbor:"6,keyasint"`
	UnbondInterval            uint32  `cbor:"7,keyasint"`
	SortitionInterval         uint32  `cbor:"8,keyasint"`
	FeeFraction               float64 `cbor:"9,keyasint"`
	MinimumFee                int64   `cbor:"10,keyasint"`
	MaximumFee                int64   `cbor:"11,keyasint"`
	MaximumStake              int64   `cbor:"12,keyasint"`
}

func DefaultParams

func DefaultParams() Params

func (Params) BlockTime

func (p Params) BlockTime() time.Duration

Jump to

Keyboard shortcuts

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