consensus_vote

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VOTE_INFO = "voteInfo"
)

Variables

This section is empty.

Functions

func CheckVotes

func CheckVotes(native *native.NativeService, id []byte, address common.Address) (bool, error)

Types

type VoteHandler

type VoteHandler struct {
}

func NewVoteHandler

func NewVoteHandler() *VoteHandler

func (*VoteHandler) MakeDepositProposal

func (this *VoteHandler) MakeDepositProposal(service *native.NativeService) (*scom.MakeTxParam, error)

type VoteInfo

type VoteInfo struct {
	Status   bool
	VoteInfo map[string]bool
}

func (*VoteInfo) Deserialization

func (this *VoteInfo) Deserialization(source *common.ZeroCopySource) error

func (*VoteInfo) Serialization

func (this *VoteInfo) Serialization(sink *common.ZeroCopySink)

Jump to

Keyboard shortcuts

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