aposgensis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BootCommitteeKey = []byte("apos_bootCommittee")
)

Functions

func MakeAposGenesisConsensusData

func MakeAposGenesisConsensusData() (bcd *block.ConsensusData, key, val []byte)

Types

type WeightInfo

type WeightInfo struct {
	AddrStr types.Address `json:"addr"`
	Wt      uint64        `json:"wt"`
}

func (*WeightInfo) DecodeMsg

func (z *WeightInfo) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*WeightInfo) EncodeMsg

func (z *WeightInfo) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*WeightInfo) MarshalMsg

func (z *WeightInfo) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*WeightInfo) Msgsize

func (z *WeightInfo) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*WeightInfo) UnmarshalMsg

func (z *WeightInfo) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type WeightInfos

type WeightInfos []WeightInfo

func LoadBootCommittee

func LoadBootCommittee() WeightInfos

Load boot committee weight config

func (*WeightInfos) DecodeMsg

func (z *WeightInfos) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (WeightInfos) EncodeMsg

func (z WeightInfos) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (WeightInfos) MarshalMsg

func (z WeightInfos) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (WeightInfos) Msgsize

func (z WeightInfos) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*WeightInfos) UnmarshalMsg

func (z *WeightInfos) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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