governance

package
v0.0.0-...-8d456d7 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstMinQuorumForQc        = 3 //default min vote num
	ConstNodeProposeRound      = 1 //default continuity propose round
	MinimumTimeOutMill         = 15000
	MinimumIntervalTimeOutMill = 100

	CachedLen                = "CachedLen"
	RoundTimeoutMill         = "MaxbftRoundTimeoutMill"
	RoundTimeoutIntervalMill = "MaxbftRoundTimeoutIntervalMill"

	UnmarshalErrFmt = "proto.Unmarshal err!err=%v"
)

Variables

This section is empty.

Functions

func CheckAndCreateGovernmentArgs

func CheckAndCreateGovernmentArgs(proposalCache protocol.ProposalCache,
	block *commonPb.Block, governanceContract *consensusPb.GovernanceContract) (*commonPb.TxRWSet, error)

CheckAndCreateGovernmentArgs execute after block propose,create government txRWSet,wait to add to block header when block commit,government txRWSet take effect

Types

type GovernanceContractImp

type GovernanceContractImp struct {
	Height uint64 //Cache height
	// contains filtered or unexported fields
}

func (*GovernanceContractImp) GetGovernanceContract

func (gcr *GovernanceContractImp) GetGovernanceContract() (*consensusPb.GovernanceContract, error)

Get Government data from cache,ChainStore,chainConfig

type IntSlice64

type IntSlice64 []int64

func (IntSlice64) Len

func (s IntSlice64) Len() int

func (IntSlice64) Less

func (s IntSlice64) Less(i, j int) bool

func (IntSlice64) Swap

func (s IntSlice64) Swap(i, j int)

Jump to

Keyboard shortcuts

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