Versions in this module Expand all Collapse all v1 v1.5.1 Dec 9, 2022 v1.5.0 Dec 8, 2022 Changes in this version type ConsensusType + const ConsensusType_PBFT type GovernanceContract + HotstuffRoundTimeoutIntervalMill uint64 + HotstuffRoundTimeoutMill uint64 + func (m *GovernanceContract) GetHotstuffRoundTimeoutIntervalMill() uint64 + func (m *GovernanceContract) GetHotstuffRoundTimeoutMill() uint64 v1.0.0 Nov 11, 2022 Changes in this version + var ConsensusType_name = map[int32]string + var ConsensusType_value = map[string]int32 + var ErrIntOverflowConsensus = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthConsensus = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupConsensus = fmt.Errorf("proto: unexpected end of group") + var VerifyResult_Code_name = map[int32]string + var VerifyResult_Code_value = map[string]int32 + type BlockHeaderConsensusArgs struct + ConsensusData *common.TxRWSet + ConsensusType int64 + Round uint64 + View uint64 + func (*BlockHeaderConsensusArgs) Descriptor() ([]byte, []int) + func (*BlockHeaderConsensusArgs) ProtoMessage() + func (m *BlockHeaderConsensusArgs) GetConsensusData() *common.TxRWSet + func (m *BlockHeaderConsensusArgs) GetConsensusType() int64 + func (m *BlockHeaderConsensusArgs) GetRound() uint64 + func (m *BlockHeaderConsensusArgs) GetView() uint64 + func (m *BlockHeaderConsensusArgs) Marshal() (dAtA []byte, err error) + func (m *BlockHeaderConsensusArgs) MarshalTo(dAtA []byte) (int, error) + func (m *BlockHeaderConsensusArgs) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BlockHeaderConsensusArgs) Reset() + func (m *BlockHeaderConsensusArgs) Size() (n int) + func (m *BlockHeaderConsensusArgs) String() string + func (m *BlockHeaderConsensusArgs) Unmarshal(dAtA []byte) error + func (m *BlockHeaderConsensusArgs) XXX_DiscardUnknown() + func (m *BlockHeaderConsensusArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BlockHeaderConsensusArgs) XXX_Merge(src proto.Message) + func (m *BlockHeaderConsensusArgs) XXX_Size() int + func (m *BlockHeaderConsensusArgs) XXX_Unmarshal(b []byte) error + type ConsensusType int32 + const ConsensusType_HOTSTUFF + const ConsensusType_RAFT + const ConsensusType_SOLO + const ConsensusType_XPBFT + func (ConsensusType) EnumDescriptor() ([]byte, []int) + func (x ConsensusType) String() string + type GovernanceContract struct + BlockNumPerEpoch uint64 + CachedLen uint64 + ConfigSequence uint64 + CurMaxIndex int64 + EpochId uint64 + LastMinQuorumForQc uint64 + LastValidators []*GovernanceParticipant + MaxbftRoundTimeoutIntervalMill uint64 + MaxbftRoundTimeoutMill uint64 + MinQuorumForQc uint64 + N uint64 + NextSwitchHeight uint64 + NextValidators []*GovernanceParticipant + NodeProposeRound uint64 + Participants []*GovernanceParticipant + SkipTimeoutCommit bool + TransitBlock uint64 + Type ConsensusType + ValidatorNum uint64 + Validators []*GovernanceParticipant + func (*GovernanceContract) Descriptor() ([]byte, []int) + func (*GovernanceContract) ProtoMessage() + func (m *GovernanceContract) GetBlockNumPerEpoch() uint64 + func (m *GovernanceContract) GetCachedLen() uint64 + func (m *GovernanceContract) GetConfigSequence() uint64 + func (m *GovernanceContract) GetCurMaxIndex() int64 + func (m *GovernanceContract) GetEpochId() uint64 + func (m *GovernanceContract) GetLastMinQuorumForQc() uint64 + func (m *GovernanceContract) GetLastValidators() []*GovernanceParticipant + func (m *GovernanceContract) GetMaxbftRoundTimeoutIntervalMill() uint64 + func (m *GovernanceContract) GetMaxbftRoundTimeoutMill() uint64 + func (m *GovernanceContract) GetMinQuorumForQc() uint64 + func (m *GovernanceContract) GetN() uint64 + func (m *GovernanceContract) GetNextSwitchHeight() uint64 + func (m *GovernanceContract) GetNextValidators() []*GovernanceParticipant + func (m *GovernanceContract) GetNodeProposeRound() uint64 + func (m *GovernanceContract) GetParticipants() []*GovernanceParticipant + func (m *GovernanceContract) GetSkipTimeoutCommit() bool + func (m *GovernanceContract) GetTransitBlock() uint64 + func (m *GovernanceContract) GetType() ConsensusType + func (m *GovernanceContract) GetValidatorNum() uint64 + func (m *GovernanceContract) GetValidators() []*GovernanceParticipant + func (m *GovernanceContract) Marshal() (dAtA []byte, err error) + func (m *GovernanceContract) MarshalTo(dAtA []byte) (int, error) + func (m *GovernanceContract) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GovernanceContract) Reset() + func (m *GovernanceContract) Size() (n int) + func (m *GovernanceContract) String() string + func (m *GovernanceContract) Unmarshal(dAtA []byte) error + func (m *GovernanceContract) XXX_DiscardUnknown() + func (m *GovernanceContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GovernanceContract) XXX_Merge(src proto.Message) + func (m *GovernanceContract) XXX_Size() int + func (m *GovernanceContract) XXX_Unmarshal(b []byte) error + type GovernanceParticipant struct + Index int64 + NodeId string + func (*GovernanceParticipant) Descriptor() ([]byte, []int) + func (*GovernanceParticipant) ProtoMessage() + func (m *GovernanceParticipant) GetIndex() int64 + func (m *GovernanceParticipant) GetNodeId() string + func (m *GovernanceParticipant) Marshal() (dAtA []byte, err error) + func (m *GovernanceParticipant) MarshalTo(dAtA []byte) (int, error) + func (m *GovernanceParticipant) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GovernanceParticipant) Reset() + func (m *GovernanceParticipant) Size() (n int) + func (m *GovernanceParticipant) String() string + func (m *GovernanceParticipant) Unmarshal(dAtA []byte) error + func (m *GovernanceParticipant) XXX_DiscardUnknown() + func (m *GovernanceParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GovernanceParticipant) XXX_Merge(src proto.Message) + func (m *GovernanceParticipant) XXX_Size() int + func (m *GovernanceParticipant) XXX_Unmarshal(b []byte) error + type ProposalBlock struct + Block *common.Block + CutBlock *common.Block + TxsRwSet map[string]*common.TxRWSet + func (*ProposalBlock) Descriptor() ([]byte, []int) + func (*ProposalBlock) ProtoMessage() + func (m *ProposalBlock) GetBlock() *common.Block + func (m *ProposalBlock) GetCutBlock() *common.Block + func (m *ProposalBlock) GetTxsRwSet() map[string]*common.TxRWSet + func (m *ProposalBlock) Marshal() (dAtA []byte, err error) + func (m *ProposalBlock) MarshalTo(dAtA []byte) (int, error) + func (m *ProposalBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ProposalBlock) Reset() + func (m *ProposalBlock) Size() (n int) + func (m *ProposalBlock) String() string + func (m *ProposalBlock) Unmarshal(dAtA []byte) error + func (m *ProposalBlock) XXX_DiscardUnknown() + func (m *ProposalBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ProposalBlock) XXX_Merge(src proto.Message) + func (m *ProposalBlock) XXX_Size() int + func (m *ProposalBlock) XXX_Unmarshal(b []byte) error + type RwSetVerifyFailTxs struct + BlockHeight uint64 + TxIds []string + func (*RwSetVerifyFailTxs) Descriptor() ([]byte, []int) + func (*RwSetVerifyFailTxs) ProtoMessage() + func (m *RwSetVerifyFailTxs) GetBlockHeight() uint64 + func (m *RwSetVerifyFailTxs) GetTxIds() []string + func (m *RwSetVerifyFailTxs) Marshal() (dAtA []byte, err error) + func (m *RwSetVerifyFailTxs) MarshalTo(dAtA []byte) (int, error) + func (m *RwSetVerifyFailTxs) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RwSetVerifyFailTxs) Reset() + func (m *RwSetVerifyFailTxs) Size() (n int) + func (m *RwSetVerifyFailTxs) String() string + func (m *RwSetVerifyFailTxs) Unmarshal(dAtA []byte) error + func (m *RwSetVerifyFailTxs) XXX_DiscardUnknown() + func (m *RwSetVerifyFailTxs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RwSetVerifyFailTxs) XXX_Merge(src proto.Message) + func (m *RwSetVerifyFailTxs) XXX_Size() int + func (m *RwSetVerifyFailTxs) XXX_Unmarshal(b []byte) error + type VerifyResult struct + Code VerifyResult_Code + Msg string + RwSetVerifyFailTxs *RwSetVerifyFailTxs + TxsRwSet map[string]*common.TxRWSet + VerifiedBlock *common.Block + func (*VerifyResult) Descriptor() ([]byte, []int) + func (*VerifyResult) ProtoMessage() + func (m *VerifyResult) GetCode() VerifyResult_Code + func (m *VerifyResult) GetMsg() string + func (m *VerifyResult) GetRwSetVerifyFailTxs() *RwSetVerifyFailTxs + func (m *VerifyResult) GetTxsRwSet() map[string]*common.TxRWSet + func (m *VerifyResult) GetVerifiedBlock() *common.Block + func (m *VerifyResult) Marshal() (dAtA []byte, err error) + func (m *VerifyResult) MarshalTo(dAtA []byte) (int, error) + func (m *VerifyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VerifyResult) Reset() + func (m *VerifyResult) Size() (n int) + func (m *VerifyResult) String() string + func (m *VerifyResult) Unmarshal(dAtA []byte) error + func (m *VerifyResult) XXX_DiscardUnknown() + func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VerifyResult) XXX_Merge(src proto.Message) + func (m *VerifyResult) XXX_Size() int + func (m *VerifyResult) XXX_Unmarshal(b []byte) error + type VerifyResult_Code int32 + const VerifyResult_FAIL + const VerifyResult_SUCCESS + func (VerifyResult_Code) EnumDescriptor() ([]byte, []int) + func (x VerifyResult_Code) String() string