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 NewGovernanceContract ¶
func NewGovernanceContract(store protocol.BlockchainStore, ledger protocol.LedgerCache) *GovernanceContractImp
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)
Click to show internal directories.
Click to hide internal directories.