dpos

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDpos        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDpos          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDpos = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type CandidateInfo

type CandidateInfo struct {
	// Identification of the node
	PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// The voting weight of the node
	Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
}

func (*CandidateInfo) Descriptor

func (*CandidateInfo) Descriptor() ([]byte, []int)

func (*CandidateInfo) GetPeerId

func (m *CandidateInfo) GetPeerId() string

func (*CandidateInfo) GetWeight

func (m *CandidateInfo) GetWeight() string

func (*CandidateInfo) Marshal

func (m *CandidateInfo) Marshal() (dAtA []byte, err error)

func (*CandidateInfo) MarshalTo

func (m *CandidateInfo) MarshalTo(dAtA []byte) (int, error)

func (*CandidateInfo) MarshalToSizedBuffer

func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandidateInfo) ProtoMessage

func (*CandidateInfo) ProtoMessage()

func (*CandidateInfo) Reset

func (m *CandidateInfo) Reset()

func (*CandidateInfo) Size

func (m *CandidateInfo) Size() (n int)

func (*CandidateInfo) String

func (m *CandidateInfo) String() string

func (*CandidateInfo) Unmarshal

func (m *CandidateInfo) Unmarshal(dAtA []byte) error

func (*CandidateInfo) XXX_DiscardUnknown

func (m *CandidateInfo) XXX_DiscardUnknown()

func (*CandidateInfo) XXX_Marshal

func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandidateInfo) XXX_Merge

func (m *CandidateInfo) XXX_Merge(src proto.Message)

func (*CandidateInfo) XXX_Size

func (m *CandidateInfo) XXX_Size() int

func (*CandidateInfo) XXX_Unmarshal

func (m *CandidateInfo) XXX_Unmarshal(b []byte) error

type DPoSConfig

type DPoSConfig struct {
	// epoch block number
	EpochBlockNumber uint32 `protobuf:"varint,1,opt,name=epoch_block_number,json=epochBlockNumber,proto3" json:"epoch_block_number,omitempty"`
	// epoch validator number
	EpochValidatorNumber uint32 `protobuf:"varint,2,opt,name=epoch_validator_number,json=epochValidatorNumber,proto3" json:"epoch_validator_number,omitempty"`
	// min self delegation
	MinSelfDelegation uint32 `protobuf:"varint,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"`
	// from slashing
	FromSlashing string `protobuf:"bytes,4,opt,name=from_slashing,json=fromSlashing,proto3" json:"from_slashing,omitempty"`
	// distribution per block
	DistributionPerBlock uint32 `protobuf:"varint,5,opt,name=distribution_per_block,json=distributionPerBlock,proto3" json:"distribution_per_block,omitempty"`
	// distribution gas exchange rate
	DistributionGasExchangeRate uint32 `` /* 147-byte string literal not displayed */
	// slashing per block
	SlashingPerBlock uint32 `protobuf:"varint,7,opt,name=slashing_per_block,json=slashingPerBlock,proto3" json:"slashing_per_block,omitempty"`
	// sequence
	Sequence uint32 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

DPoSConfig

func (*DPoSConfig) Descriptor

func (*DPoSConfig) Descriptor() ([]byte, []int)

func (*DPoSConfig) GetDistributionGasExchangeRate

func (m *DPoSConfig) GetDistributionGasExchangeRate() uint32

func (*DPoSConfig) GetDistributionPerBlock

func (m *DPoSConfig) GetDistributionPerBlock() uint32

func (*DPoSConfig) GetEpochBlockNumber

func (m *DPoSConfig) GetEpochBlockNumber() uint32

func (*DPoSConfig) GetEpochValidatorNumber

func (m *DPoSConfig) GetEpochValidatorNumber() uint32

func (*DPoSConfig) GetFromSlashing

func (m *DPoSConfig) GetFromSlashing() string

func (*DPoSConfig) GetMinSelfDelegation

func (m *DPoSConfig) GetMinSelfDelegation() uint32

func (*DPoSConfig) GetSequence

func (m *DPoSConfig) GetSequence() uint32

func (*DPoSConfig) GetSlashingPerBlock

func (m *DPoSConfig) GetSlashingPerBlock() uint32

func (*DPoSConfig) Marshal

func (m *DPoSConfig) Marshal() (dAtA []byte, err error)

func (*DPoSConfig) MarshalTo

func (m *DPoSConfig) MarshalTo(dAtA []byte) (int, error)

func (*DPoSConfig) MarshalToSizedBuffer

func (m *DPoSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DPoSConfig) ProtoMessage

func (*DPoSConfig) ProtoMessage()

func (*DPoSConfig) Reset

func (m *DPoSConfig) Reset()

func (*DPoSConfig) Size

func (m *DPoSConfig) Size() (n int)

func (*DPoSConfig) String

func (m *DPoSConfig) String() string

func (*DPoSConfig) Unmarshal

func (m *DPoSConfig) Unmarshal(dAtA []byte) error

func (*DPoSConfig) XXX_DiscardUnknown

func (m *DPoSConfig) XXX_DiscardUnknown()

func (*DPoSConfig) XXX_Marshal

func (m *DPoSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DPoSConfig) XXX_Merge

func (m *DPoSConfig) XXX_Merge(src proto.Message)

func (*DPoSConfig) XXX_Size

func (m *DPoSConfig) XXX_Size() int

func (*DPoSConfig) XXX_Unmarshal

func (m *DPoSConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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