consensus

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: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthConsensus        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsensus          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsensus = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ConsensusNodeState_name = map[int32]string{
	0: "UNKNOWN",
	1: "ACTIVE",
	2: "INACTIVE",
}
View Source
var ConsensusNodeState_value = map[string]int32{
	"UNKNOWN":  0,
	"ACTIVE":   1,
	"INACTIVE": 2,
}
View Source
var ConsensusType_name = map[int32]string{
	0:  "SOLO",
	1:  "TBFT",
	2:  "MBFT",
	3:  "MAXBFT",
	4:  "RAFT",
	5:  "DPOS",
	6:  "ABFT",
	10: "POW",
}
View Source
var ConsensusType_value = map[string]int32{
	"SOLO":   0,
	"TBFT":   1,
	"MBFT":   2,
	"MAXBFT": 3,
	"RAFT":   4,
	"DPOS":   5,
	"ABFT":   6,
	"POW":    10,
}
View Source
var VerifyResult_Code_name = map[int32]string{
	0: "SUCCESS",
	1: "FAIL",
}
View Source
var VerifyResult_Code_value = map[string]int32{
	"SUCCESS": 0,
	"FAIL":    1,
}

Functions

This section is empty.

Types

type BlockHeaderConsensusArgs

type BlockHeaderConsensusArgs struct {
	ConsensusType int64 `protobuf:"varint,1,opt,name=consensus_type,json=consensusType,proto3" json:"consensus_type,omitempty"`
	// status of the round in tbft
	Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	// status of the view in maxbft
	View          uint64          `protobuf:"varint,3,opt,name=view,proto3" json:"view,omitempty"`
	ConsensusData *common.TxRWSet `protobuf:"bytes,4,opt,name=consensus_data,json=consensusData,proto3" json:"consensus_data,omitempty"`
}

func (*BlockHeaderConsensusArgs) Descriptor

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

func (*BlockHeaderConsensusArgs) GetConsensusData

func (m *BlockHeaderConsensusArgs) GetConsensusData() *common.TxRWSet

func (*BlockHeaderConsensusArgs) GetConsensusType

func (m *BlockHeaderConsensusArgs) GetConsensusType() int64

func (*BlockHeaderConsensusArgs) GetRound

func (m *BlockHeaderConsensusArgs) GetRound() uint64

func (*BlockHeaderConsensusArgs) GetView

func (m *BlockHeaderConsensusArgs) GetView() uint64

func (*BlockHeaderConsensusArgs) Marshal

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

func (*BlockHeaderConsensusArgs) MarshalTo

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

func (*BlockHeaderConsensusArgs) MarshalToSizedBuffer

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

func (*BlockHeaderConsensusArgs) ProtoMessage

func (*BlockHeaderConsensusArgs) ProtoMessage()

func (*BlockHeaderConsensusArgs) Reset

func (m *BlockHeaderConsensusArgs) Reset()

func (*BlockHeaderConsensusArgs) Size

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

func (*BlockHeaderConsensusArgs) String

func (m *BlockHeaderConsensusArgs) String() string

func (*BlockHeaderConsensusArgs) Unmarshal

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

func (*BlockHeaderConsensusArgs) XXX_DiscardUnknown

func (m *BlockHeaderConsensusArgs) XXX_DiscardUnknown()

func (*BlockHeaderConsensusArgs) XXX_Marshal

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

func (*BlockHeaderConsensusArgs) XXX_Merge

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

func (*BlockHeaderConsensusArgs) XXX_Size

func (m *BlockHeaderConsensusArgs) XXX_Size() int

func (*BlockHeaderConsensusArgs) XXX_Unmarshal

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

type ConsensusNodeInfo added in v3.0.1

type ConsensusNodeInfo struct {
	NodeID string             `protobuf:"bytes,1,opt,name=nodeID,proto3" json:"nodeID,omitempty"`
	State  ConsensusNodeState `protobuf:"varint,2,opt,name=state,proto3,enum=consensus.ConsensusNodeState" json:"state,omitempty"`
	// Explain if need explain the state set it.
	Explain string `protobuf:"bytes,3,opt,name=explain,proto3" json:"explain,omitempty"`
}

ConsensusNodeInfo a consensus node information

func (*ConsensusNodeInfo) Descriptor added in v3.0.1

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

func (*ConsensusNodeInfo) GetExplain added in v3.0.1

func (m *ConsensusNodeInfo) GetExplain() string

func (*ConsensusNodeInfo) GetNodeID added in v3.0.1

func (m *ConsensusNodeInfo) GetNodeID() string

func (*ConsensusNodeInfo) GetState added in v3.0.1

func (m *ConsensusNodeInfo) GetState() ConsensusNodeState

func (*ConsensusNodeInfo) Marshal added in v3.0.1

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

func (*ConsensusNodeInfo) MarshalTo added in v3.0.1

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

func (*ConsensusNodeInfo) MarshalToSizedBuffer added in v3.0.1

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

func (*ConsensusNodeInfo) ProtoMessage added in v3.0.1

func (*ConsensusNodeInfo) ProtoMessage()

func (*ConsensusNodeInfo) Reset added in v3.0.1

func (m *ConsensusNodeInfo) Reset()

func (*ConsensusNodeInfo) Size added in v3.0.1

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

func (*ConsensusNodeInfo) String added in v3.0.1

func (m *ConsensusNodeInfo) String() string

func (*ConsensusNodeInfo) Unmarshal added in v3.0.1

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

func (*ConsensusNodeInfo) XXX_DiscardUnknown added in v3.0.1

func (m *ConsensusNodeInfo) XXX_DiscardUnknown()

func (*ConsensusNodeInfo) XXX_Marshal added in v3.0.1

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

func (*ConsensusNodeInfo) XXX_Merge added in v3.0.1

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

func (*ConsensusNodeInfo) XXX_Size added in v3.0.1

func (m *ConsensusNodeInfo) XXX_Size() int

func (*ConsensusNodeInfo) XXX_Unmarshal added in v3.0.1

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

type ConsensusNodeState added in v3.0.1

type ConsensusNodeState int32
const (
	// UNKNOWN consensus node state is unknown
	ConsensusNodeState_UNKNOWN ConsensusNodeState = 0
	// ACTIVE consensus node is active
	ConsensusNodeState_ACTIVE ConsensusNodeState = 1
	// INACTIVE consensus node is inactive
	ConsensusNodeState_INACTIVE ConsensusNodeState = 2
)

func (ConsensusNodeState) EnumDescriptor added in v3.0.1

func (ConsensusNodeState) EnumDescriptor() ([]byte, []int)

func (ConsensusNodeState) String added in v3.0.1

func (x ConsensusNodeState) String() string

type ConsensusType

type ConsensusType int32
const (
	ConsensusType_SOLO   ConsensusType = 0
	ConsensusType_TBFT   ConsensusType = 1
	ConsensusType_MBFT   ConsensusType = 2
	ConsensusType_MAXBFT ConsensusType = 3
	ConsensusType_RAFT   ConsensusType = 4
	ConsensusType_DPOS   ConsensusType = 5
	ConsensusType_ABFT   ConsensusType = 6
	ConsensusType_POW    ConsensusType = 10
)

func (ConsensusType) EnumDescriptor

func (ConsensusType) EnumDescriptor() ([]byte, []int)

func (ConsensusType) String

func (x ConsensusType) String() string

type GetConsensusStatusRequest

type GetConsensusStatusRequest struct {
	// blockchain identifier
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

rpc get consensus status by the request

func (*GetConsensusStatusRequest) Descriptor

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

func (*GetConsensusStatusRequest) GetChainId

func (m *GetConsensusStatusRequest) GetChainId() string

func (*GetConsensusStatusRequest) Marshal

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

func (*GetConsensusStatusRequest) MarshalTo

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

func (*GetConsensusStatusRequest) MarshalToSizedBuffer

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

func (*GetConsensusStatusRequest) ProtoMessage

func (*GetConsensusStatusRequest) ProtoMessage()

func (*GetConsensusStatusRequest) Reset

func (m *GetConsensusStatusRequest) Reset()

func (*GetConsensusStatusRequest) Size

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

func (*GetConsensusStatusRequest) String

func (m *GetConsensusStatusRequest) String() string

func (*GetConsensusStatusRequest) Unmarshal

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

func (*GetConsensusStatusRequest) XXX_DiscardUnknown

func (m *GetConsensusStatusRequest) XXX_DiscardUnknown()

func (*GetConsensusStatusRequest) XXX_Marshal

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

func (*GetConsensusStatusRequest) XXX_Merge

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

func (*GetConsensusStatusRequest) XXX_Size

func (m *GetConsensusStatusRequest) XXX_Size() int

func (*GetConsensusStatusRequest) XXX_Unmarshal

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

type GovernanceContract

type GovernanceContract struct {
	EpochId           uint64        `protobuf:"varint,1,opt,name=epoch_id,json=epochId,proto3" json:"epoch_id,omitempty"`
	Type              ConsensusType `protobuf:"varint,2,opt,name=type,proto3,enum=consensus.ConsensusType" json:"type,omitempty"`
	CurMaxIndex       int64         `protobuf:"varint,3,opt,name=cur_max_index,json=curMaxIndex,proto3" json:"cur_max_index,omitempty"`
	SkipTimeoutCommit bool          `protobuf:"varint,4,opt,name=skip_timeout_commit,json=skipTimeoutCommit,proto3" json:"skip_timeout_commit,omitempty"`
	//bool is_config_chg = 4;   //is the configuration changed
	//bool is_validator_chg = 5;    //is the validator changed
	ConfigSequence                 uint64              `protobuf:"varint,6,opt,name=config_sequence,json=configSequence,proto3" json:"config_sequence,omitempty"`
	N                              uint64              `protobuf:"varint,7,opt,name=n,proto3" json:"n,omitempty"`
	MinQuorumForQc                 uint64              `protobuf:"varint,8,opt,name=min_quorum_for_qc,json=minQuorumForQc,proto3" json:"min_quorum_for_qc,omitempty"`
	CachedLen                      uint64              `protobuf:"varint,9,opt,name=cached_len,json=cachedLen,proto3" json:"cached_len,omitempty"`
	NextSwitchHeight               uint64              `protobuf:"varint,10,opt,name=next_switch_height,json=nextSwitchHeight,proto3" json:"next_switch_height,omitempty"`
	TransitBlock                   uint64              `protobuf:"varint,11,opt,name=transit_block,json=transitBlock,proto3" json:"transit_block,omitempty"`
	BlockNumPerEpoch               uint64              `protobuf:"varint,12,opt,name=block_num_per_epoch,json=blockNumPerEpoch,proto3" json:"block_num_per_epoch,omitempty"`
	ValidatorNum                   uint64              `protobuf:"varint,13,opt,name=validator_num,json=validatorNum,proto3" json:"validator_num,omitempty"`
	NodeProposeRound               uint64              `protobuf:"varint,14,opt,name=node_propose_round,json=nodeProposeRound,proto3" json:"node_propose_round,omitempty"`
	Members                        []*GovernanceMember `protobuf:"bytes,15,rep,name=members,proto3" json:"members,omitempty"`
	Validators                     []*GovernanceMember `protobuf:"bytes,16,rep,name=validators,proto3" json:"validators,omitempty"`
	NextValidators                 []*GovernanceMember `protobuf:"bytes,17,rep,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
	LastMinQuorumForQc             uint64              `protobuf:"varint,18,opt,name=last_min_quorum_for_qc,json=lastMinQuorumForQc,proto3" json:"last_min_quorum_for_qc,omitempty"`
	MaxbftRoundTimeoutMill         uint64              `` /* 133-byte string literal not displayed */
	MaxbftRoundTimeoutIntervalMill uint64              `` /* 159-byte string literal not displayed */
	LastValidators                 []*GovernanceMember `protobuf:"bytes,21,rep,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
}

func (*GovernanceContract) Descriptor

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

func (*GovernanceContract) GetBlockNumPerEpoch

func (m *GovernanceContract) GetBlockNumPerEpoch() uint64

func (*GovernanceContract) GetCachedLen

func (m *GovernanceContract) GetCachedLen() uint64

func (*GovernanceContract) GetConfigSequence

func (m *GovernanceContract) GetConfigSequence() uint64

func (*GovernanceContract) GetCurMaxIndex

func (m *GovernanceContract) GetCurMaxIndex() int64

func (*GovernanceContract) GetEpochId

func (m *GovernanceContract) GetEpochId() uint64

func (*GovernanceContract) GetLastMinQuorumForQc

func (m *GovernanceContract) GetLastMinQuorumForQc() uint64

func (*GovernanceContract) GetLastValidators

func (m *GovernanceContract) GetLastValidators() []*GovernanceMember

func (*GovernanceContract) GetMaxbftRoundTimeoutIntervalMill

func (m *GovernanceContract) GetMaxbftRoundTimeoutIntervalMill() uint64

func (*GovernanceContract) GetMaxbftRoundTimeoutMill

func (m *GovernanceContract) GetMaxbftRoundTimeoutMill() uint64

func (*GovernanceContract) GetMembers

func (m *GovernanceContract) GetMembers() []*GovernanceMember

func (*GovernanceContract) GetMinQuorumForQc

func (m *GovernanceContract) GetMinQuorumForQc() uint64

func (*GovernanceContract) GetN

func (m *GovernanceContract) GetN() uint64

func (*GovernanceContract) GetNextSwitchHeight

func (m *GovernanceContract) GetNextSwitchHeight() uint64

func (*GovernanceContract) GetNextValidators

func (m *GovernanceContract) GetNextValidators() []*GovernanceMember

func (*GovernanceContract) GetNodeProposeRound

func (m *GovernanceContract) GetNodeProposeRound() uint64

func (*GovernanceContract) GetSkipTimeoutCommit

func (m *GovernanceContract) GetSkipTimeoutCommit() bool

func (*GovernanceContract) GetTransitBlock

func (m *GovernanceContract) GetTransitBlock() uint64

func (*GovernanceContract) GetType

func (m *GovernanceContract) GetType() ConsensusType

func (*GovernanceContract) GetValidatorNum

func (m *GovernanceContract) GetValidatorNum() uint64

func (*GovernanceContract) GetValidators

func (m *GovernanceContract) GetValidators() []*GovernanceMember

func (*GovernanceContract) Marshal

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

func (*GovernanceContract) MarshalTo

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

func (*GovernanceContract) MarshalToSizedBuffer

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

func (*GovernanceContract) ProtoMessage

func (*GovernanceContract) ProtoMessage()

func (*GovernanceContract) Reset

func (m *GovernanceContract) Reset()

func (*GovernanceContract) Size

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

func (*GovernanceContract) String

func (m *GovernanceContract) String() string

func (*GovernanceContract) Unmarshal

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

func (*GovernanceContract) XXX_DiscardUnknown

func (m *GovernanceContract) XXX_DiscardUnknown()

func (*GovernanceContract) XXX_Marshal

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

func (*GovernanceContract) XXX_Merge

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

func (*GovernanceContract) XXX_Size

func (m *GovernanceContract) XXX_Size() int

func (*GovernanceContract) XXX_Unmarshal

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

type GovernanceMember

type GovernanceMember struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Index  int64  `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}

func (*GovernanceMember) Descriptor

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

func (*GovernanceMember) GetIndex

func (m *GovernanceMember) GetIndex() int64

func (*GovernanceMember) GetNodeId

func (m *GovernanceMember) GetNodeId() string

func (*GovernanceMember) Marshal

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

func (*GovernanceMember) MarshalTo

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

func (*GovernanceMember) MarshalToSizedBuffer

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

func (*GovernanceMember) ProtoMessage

func (*GovernanceMember) ProtoMessage()

func (*GovernanceMember) Reset

func (m *GovernanceMember) Reset()

func (*GovernanceMember) Size

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

func (*GovernanceMember) String

func (m *GovernanceMember) String() string

func (*GovernanceMember) Unmarshal

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

func (*GovernanceMember) XXX_DiscardUnknown

func (m *GovernanceMember) XXX_DiscardUnknown()

func (*GovernanceMember) XXX_Marshal

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

func (*GovernanceMember) XXX_Merge

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

func (*GovernanceMember) XXX_Size

func (m *GovernanceMember) XXX_Size() int

func (*GovernanceMember) XXX_Unmarshal

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

type ProposalBlock

type ProposalBlock struct {
	Block    *common.Block              `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	TxsRwSet map[string]*common.TxRWSet `` /* 175-byte string literal not displayed */
	CutBlock *common.Block              `protobuf:"bytes,3,opt,name=cut_block,json=cutBlock,proto3" json:"cut_block,omitempty"`
}

func (*ProposalBlock) Descriptor

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

func (*ProposalBlock) GetBlock

func (m *ProposalBlock) GetBlock() *common.Block

func (*ProposalBlock) GetCutBlock

func (m *ProposalBlock) GetCutBlock() *common.Block

func (*ProposalBlock) GetTxsRwSet

func (m *ProposalBlock) GetTxsRwSet() map[string]*common.TxRWSet

func (*ProposalBlock) Marshal

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

func (*ProposalBlock) MarshalTo

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

func (*ProposalBlock) MarshalToSizedBuffer

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

func (*ProposalBlock) ProtoMessage

func (*ProposalBlock) ProtoMessage()

func (*ProposalBlock) Reset

func (m *ProposalBlock) Reset()

func (*ProposalBlock) Size

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

func (*ProposalBlock) String

func (m *ProposalBlock) String() string

func (*ProposalBlock) Unmarshal

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

func (*ProposalBlock) XXX_DiscardUnknown

func (m *ProposalBlock) XXX_DiscardUnknown()

func (*ProposalBlock) XXX_Marshal

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

func (*ProposalBlock) XXX_Merge

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

func (*ProposalBlock) XXX_Size

func (m *ProposalBlock) XXX_Size() int

func (*ProposalBlock) XXX_Unmarshal

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

type RwSetVerifyFailTxs

type RwSetVerifyFailTxs struct {
	BlockHeight uint64   `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	TxIds       []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
	BlockHash   []byte   `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
}

func (*RwSetVerifyFailTxs) Descriptor

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

func (*RwSetVerifyFailTxs) GetBlockHash added in v3.0.1

func (m *RwSetVerifyFailTxs) GetBlockHash() []byte

func (*RwSetVerifyFailTxs) GetBlockHeight

func (m *RwSetVerifyFailTxs) GetBlockHeight() uint64

func (*RwSetVerifyFailTxs) GetTxIds

func (m *RwSetVerifyFailTxs) GetTxIds() []string

func (*RwSetVerifyFailTxs) Marshal

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

func (*RwSetVerifyFailTxs) MarshalTo

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

func (*RwSetVerifyFailTxs) MarshalToSizedBuffer

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

func (*RwSetVerifyFailTxs) ProtoMessage

func (*RwSetVerifyFailTxs) ProtoMessage()

func (*RwSetVerifyFailTxs) Reset

func (m *RwSetVerifyFailTxs) Reset()

func (*RwSetVerifyFailTxs) Size

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

func (*RwSetVerifyFailTxs) String

func (m *RwSetVerifyFailTxs) String() string

func (*RwSetVerifyFailTxs) Unmarshal

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

func (*RwSetVerifyFailTxs) XXX_DiscardUnknown

func (m *RwSetVerifyFailTxs) XXX_DiscardUnknown()

func (*RwSetVerifyFailTxs) XXX_Marshal

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

func (*RwSetVerifyFailTxs) XXX_Merge

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

func (*RwSetVerifyFailTxs) XXX_Size

func (m *RwSetVerifyFailTxs) XXX_Size() int

func (*RwSetVerifyFailTxs) XXX_Unmarshal

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

type Validators

type Validators struct {
	Nodes []string `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
}

func (*Validators) Descriptor

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

func (*Validators) GetNodes

func (m *Validators) GetNodes() []string

func (*Validators) Marshal

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

func (*Validators) MarshalTo

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

func (*Validators) MarshalToSizedBuffer

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

func (*Validators) ProtoMessage

func (*Validators) ProtoMessage()

func (*Validators) Reset

func (m *Validators) Reset()

func (*Validators) Size

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

func (*Validators) String

func (m *Validators) String() string

func (*Validators) Unmarshal

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

func (*Validators) XXX_DiscardUnknown

func (m *Validators) XXX_DiscardUnknown()

func (*Validators) XXX_Marshal

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

func (*Validators) XXX_Merge

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

func (*Validators) XXX_Size

func (m *Validators) XXX_Size() int

func (*Validators) XXX_Unmarshal

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

type VerifyResult

type VerifyResult struct {
	VerifiedBlock      *common.Block              `protobuf:"bytes,1,opt,name=verified_block,json=verifiedBlock,proto3" json:"verified_block,omitempty"`
	Code               VerifyResult_Code          `protobuf:"varint,2,opt,name=code,proto3,enum=consensus.VerifyResult_Code" json:"code,omitempty"`
	Msg                string                     `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	TxsRwSet           map[string]*common.TxRWSet `` /* 175-byte string literal not displayed */
	RwSetVerifyFailTxs *RwSetVerifyFailTxs        `protobuf:"bytes,5,opt,name=rw_set_verify_fail_txs,json=rwSetVerifyFailTxs,proto3" json:"rw_set_verify_fail_txs,omitempty"`
}

func (*VerifyResult) Descriptor

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

func (*VerifyResult) GetCode

func (m *VerifyResult) GetCode() VerifyResult_Code

func (*VerifyResult) GetMsg

func (m *VerifyResult) GetMsg() string

func (*VerifyResult) GetRwSetVerifyFailTxs

func (m *VerifyResult) GetRwSetVerifyFailTxs() *RwSetVerifyFailTxs

func (*VerifyResult) GetTxsRwSet

func (m *VerifyResult) GetTxsRwSet() map[string]*common.TxRWSet

func (*VerifyResult) GetVerifiedBlock

func (m *VerifyResult) GetVerifiedBlock() *common.Block

func (*VerifyResult) Marshal

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

func (*VerifyResult) MarshalTo

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

func (*VerifyResult) MarshalToSizedBuffer

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

func (*VerifyResult) ProtoMessage

func (*VerifyResult) ProtoMessage()

func (*VerifyResult) Reset

func (m *VerifyResult) Reset()

func (*VerifyResult) Size

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

func (*VerifyResult) String

func (m *VerifyResult) String() string

func (*VerifyResult) Unmarshal

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

func (*VerifyResult) XXX_DiscardUnknown

func (m *VerifyResult) XXX_DiscardUnknown()

func (*VerifyResult) XXX_Marshal

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

func (*VerifyResult) XXX_Merge

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

func (*VerifyResult) XXX_Size

func (m *VerifyResult) XXX_Size() int

func (*VerifyResult) XXX_Unmarshal

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

type VerifyResult_Code

type VerifyResult_Code int32
const (
	VerifyResult_SUCCESS VerifyResult_Code = 0
	VerifyResult_FAIL    VerifyResult_Code = 1
)

func (VerifyResult_Code) EnumDescriptor

func (VerifyResult_Code) EnumDescriptor() ([]byte, []int)

func (VerifyResult_Code) String

func (x VerifyResult_Code) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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