Documentation ¶
Index ¶
- Variables
- type AllowedBroadcastPullMessageType
- type AllowedBroadcastPushMessageType
- type AllowedBroadcastTreeMessageType
- type AllowedDirectMessageType
- type AllowedRelayMessageType
- type AllowedSignedMessageType
- type AllowedUnsignedMessageType
- type GetBlockHeaders
- func (*GetBlockHeaders) Descriptor() ([]byte, []int)
- func (this *GetBlockHeaders) Equal(that interface{}) bool
- func (m *GetBlockHeaders) GetEndHeight() uint32
- func (m *GetBlockHeaders) GetStartHeight() uint32
- func (this *GetBlockHeaders) GoString() string
- func (m *GetBlockHeaders) Marshal() (dAtA []byte, err error)
- func (m *GetBlockHeaders) MarshalTo(dAtA []byte) (int, error)
- func (*GetBlockHeaders) ProtoMessage()
- func (m *GetBlockHeaders) Reset()
- func (m *GetBlockHeaders) Size() (n int)
- func (this *GetBlockHeaders) String() string
- func (m *GetBlockHeaders) Unmarshal(dAtA []byte) error
- func (m *GetBlockHeaders) XXX_DiscardUnknown()
- func (m *GetBlockHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockHeaders) XXX_Merge(src proto.Message)
- func (m *GetBlockHeaders) XXX_Size() int
- func (m *GetBlockHeaders) XXX_Unmarshal(b []byte) error
- type GetBlockHeadersReply
- func (*GetBlockHeadersReply) Descriptor() ([]byte, []int)
- func (this *GetBlockHeadersReply) Equal(that interface{}) bool
- func (m *GetBlockHeadersReply) GetBlockHeaders() [][]byte
- func (this *GetBlockHeadersReply) GoString() string
- func (m *GetBlockHeadersReply) Marshal() (dAtA []byte, err error)
- func (m *GetBlockHeadersReply) MarshalTo(dAtA []byte) (int, error)
- func (*GetBlockHeadersReply) ProtoMessage()
- func (m *GetBlockHeadersReply) Reset()
- func (m *GetBlockHeadersReply) Size() (n int)
- func (this *GetBlockHeadersReply) String() string
- func (m *GetBlockHeadersReply) Unmarshal(dAtA []byte) error
- func (m *GetBlockHeadersReply) XXX_DiscardUnknown()
- func (m *GetBlockHeadersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockHeadersReply) XXX_Merge(src proto.Message)
- func (m *GetBlockHeadersReply) XXX_Size() int
- func (m *GetBlockHeadersReply) XXX_Unmarshal(b []byte) error
- type GetBlocks
- func (*GetBlocks) Descriptor() ([]byte, []int)
- func (this *GetBlocks) Equal(that interface{}) bool
- func (m *GetBlocks) GetEndHeight() uint32
- func (m *GetBlocks) GetStartHeight() uint32
- func (this *GetBlocks) GoString() string
- func (m *GetBlocks) Marshal() (dAtA []byte, err error)
- func (m *GetBlocks) MarshalTo(dAtA []byte) (int, error)
- func (*GetBlocks) ProtoMessage()
- func (m *GetBlocks) Reset()
- func (m *GetBlocks) Size() (n int)
- func (this *GetBlocks) String() string
- func (m *GetBlocks) Unmarshal(dAtA []byte) error
- func (m *GetBlocks) XXX_DiscardUnknown()
- func (m *GetBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlocks) XXX_Merge(src proto.Message)
- func (m *GetBlocks) XXX_Size() int
- func (m *GetBlocks) XXX_Unmarshal(b []byte) error
- type GetBlocksReply
- func (*GetBlocksReply) Descriptor() ([]byte, []int)
- func (this *GetBlocksReply) Equal(that interface{}) bool
- func (m *GetBlocksReply) GetBlocks() [][]byte
- func (this *GetBlocksReply) GoString() string
- func (m *GetBlocksReply) Marshal() (dAtA []byte, err error)
- func (m *GetBlocksReply) MarshalTo(dAtA []byte) (int, error)
- func (*GetBlocksReply) ProtoMessage()
- func (m *GetBlocksReply) Reset()
- func (m *GetBlocksReply) Size() (n int)
- func (this *GetBlocksReply) String() string
- func (m *GetBlocksReply) Unmarshal(dAtA []byte) error
- func (m *GetBlocksReply) XXX_DiscardUnknown()
- func (m *GetBlocksReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlocksReply) XXX_Merge(src proto.Message)
- func (m *GetBlocksReply) XXX_Size() int
- func (m *GetBlocksReply) XXX_Unmarshal(b []byte) error
- type GetConsensusState
- func (*GetConsensusState) Descriptor() ([]byte, []int)
- func (this *GetConsensusState) Equal(that interface{}) bool
- func (this *GetConsensusState) GoString() string
- func (m *GetConsensusState) Marshal() (dAtA []byte, err error)
- func (m *GetConsensusState) MarshalTo(dAtA []byte) (int, error)
- func (*GetConsensusState) ProtoMessage()
- func (m *GetConsensusState) Reset()
- func (m *GetConsensusState) Size() (n int)
- func (this *GetConsensusState) String() string
- func (m *GetConsensusState) Unmarshal(dAtA []byte) error
- func (m *GetConsensusState) XXX_DiscardUnknown()
- func (m *GetConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetConsensusState) XXX_Merge(src proto.Message)
- func (m *GetConsensusState) XXX_Size() int
- func (m *GetConsensusState) XXX_Unmarshal(b []byte) error
- type GetConsensusStateReply
- func (*GetConsensusStateReply) Descriptor() ([]byte, []int)
- func (this *GetConsensusStateReply) Equal(that interface{}) bool
- func (m *GetConsensusStateReply) GetConsensusHeight() uint32
- func (m *GetConsensusStateReply) GetLedgerBlockHash() []byte
- func (m *GetConsensusStateReply) GetLedgerHeight() uint32
- func (m *GetConsensusStateReply) GetSyncState() SyncState
- func (this *GetConsensusStateReply) GoString() string
- func (m *GetConsensusStateReply) Marshal() (dAtA []byte, err error)
- func (m *GetConsensusStateReply) MarshalTo(dAtA []byte) (int, error)
- func (*GetConsensusStateReply) ProtoMessage()
- func (m *GetConsensusStateReply) Reset()
- func (m *GetConsensusStateReply) Size() (n int)
- func (this *GetConsensusStateReply) String() string
- func (m *GetConsensusStateReply) Unmarshal(dAtA []byte) error
- func (m *GetConsensusStateReply) XXX_DiscardUnknown()
- func (m *GetConsensusStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetConsensusStateReply) XXX_Merge(src proto.Message)
- func (m *GetConsensusStateReply) XXX_Size() int
- func (m *GetConsensusStateReply) XXX_Unmarshal(b []byte) error
- type IHaveBlockProposal
- func (*IHaveBlockProposal) Descriptor() ([]byte, []int)
- func (this *IHaveBlockProposal) Equal(that interface{}) bool
- func (m *IHaveBlockProposal) GetBlockHash() []byte
- func (m *IHaveBlockProposal) GetHeight() uint32
- func (this *IHaveBlockProposal) GoString() string
- func (m *IHaveBlockProposal) Marshal() (dAtA []byte, err error)
- func (m *IHaveBlockProposal) MarshalTo(dAtA []byte) (int, error)
- func (*IHaveBlockProposal) ProtoMessage()
- func (m *IHaveBlockProposal) Reset()
- func (m *IHaveBlockProposal) Size() (n int)
- func (this *IHaveBlockProposal) String() string
- func (m *IHaveBlockProposal) Unmarshal(dAtA []byte) error
- func (m *IHaveBlockProposal) XXX_DiscardUnknown()
- func (m *IHaveBlockProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IHaveBlockProposal) XXX_Merge(src proto.Message)
- func (m *IHaveBlockProposal) XXX_Size() int
- func (m *IHaveBlockProposal) XXX_Unmarshal(b []byte) error
- type InboundMessage
- func (*InboundMessage) Descriptor() ([]byte, []int)
- func (this *InboundMessage) Equal(that interface{}) bool
- func (m *InboundMessage) GetPayload() []byte
- func (m *InboundMessage) GetSrc() string
- func (this *InboundMessage) GoString() string
- func (m *InboundMessage) Marshal() (dAtA []byte, err error)
- func (m *InboundMessage) MarshalTo(dAtA []byte) (int, error)
- func (*InboundMessage) ProtoMessage()
- func (m *InboundMessage) Reset()
- func (m *InboundMessage) Size() (n int)
- func (this *InboundMessage) String() string
- func (m *InboundMessage) Unmarshal(dAtA []byte) error
- func (m *InboundMessage) XXX_DiscardUnknown()
- func (m *InboundMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InboundMessage) XXX_Merge(src proto.Message)
- func (m *InboundMessage) XXX_Size() int
- func (m *InboundMessage) XXX_Unmarshal(b []byte) error
- type MessageType
- type NodeData
- func (*NodeData) Descriptor() ([]byte, []int)
- func (this *NodeData) Equal(that interface{}) bool
- func (m *NodeData) GetJsonRpcPort() uint32
- func (m *NodeData) GetProtocolVersion() uint32
- func (m *NodeData) GetPublicKey() []byte
- func (m *NodeData) GetWebsocketPort() uint32
- func (this *NodeData) GoString() string
- func (m *NodeData) Marshal() (dAtA []byte, err error)
- func (m *NodeData) MarshalTo(dAtA []byte) (int, error)
- func (*NodeData) ProtoMessage()
- func (m *NodeData) Reset()
- func (m *NodeData) Size() (n int)
- func (this *NodeData) String() string
- func (m *NodeData) Unmarshal(dAtA []byte) error
- func (m *NodeData) XXX_DiscardUnknown()
- func (m *NodeData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NodeData) XXX_Merge(src proto.Message)
- func (m *NodeData) XXX_Size() int
- func (m *NodeData) XXX_Unmarshal(b []byte) error
- type OutboundMessage
- func (*OutboundMessage) Descriptor() ([]byte, []int)
- func (this *OutboundMessage) Equal(that interface{}) bool
- func (m *OutboundMessage) GetDest() string
- func (m *OutboundMessage) GetDests() []string
- func (m *OutboundMessage) GetMaxHoldingSeconds() uint32
- func (m *OutboundMessage) GetPayload() []byte
- func (this *OutboundMessage) GoString() string
- func (m *OutboundMessage) Marshal() (dAtA []byte, err error)
- func (m *OutboundMessage) MarshalTo(dAtA []byte) (int, error)
- func (*OutboundMessage) ProtoMessage()
- func (m *OutboundMessage) Reset()
- func (m *OutboundMessage) Size() (n int)
- func (this *OutboundMessage) String() string
- func (m *OutboundMessage) Unmarshal(dAtA []byte) error
- func (m *OutboundMessage) XXX_DiscardUnknown()
- func (m *OutboundMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OutboundMessage) XXX_Merge(src proto.Message)
- func (m *OutboundMessage) XXX_Size() int
- func (m *OutboundMessage) XXX_Unmarshal(b []byte) error
- type Relay
- func (*Relay) Descriptor() ([]byte, []int)
- func (this *Relay) Equal(that interface{}) bool
- func (m *Relay) GetDestId() []byte
- func (m *Relay) GetMaxHoldingSeconds() uint32
- func (m *Relay) GetPayload() []byte
- func (m *Relay) GetSigChain() *por.SigChain
- func (m *Relay) GetSrcAddr() string
- func (this *Relay) GoString() string
- func (m *Relay) Marshal() (dAtA []byte, err error)
- func (m *Relay) MarshalTo(dAtA []byte) (int, error)
- func (*Relay) ProtoMessage()
- func (m *Relay) Reset()
- func (m *Relay) Size() (n int)
- func (this *Relay) String() string
- func (m *Relay) Unmarshal(dAtA []byte) error
- func (m *Relay) XXX_DiscardUnknown()
- func (m *Relay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Relay) XXX_Merge(src proto.Message)
- func (m *Relay) XXX_Size() int
- func (m *Relay) XXX_Unmarshal(b []byte) error
- type RequestBlockProposal
- func (*RequestBlockProposal) Descriptor() ([]byte, []int)
- func (this *RequestBlockProposal) Equal(that interface{}) bool
- func (m *RequestBlockProposal) GetBlockHash() []byte
- func (this *RequestBlockProposal) GoString() string
- func (m *RequestBlockProposal) Marshal() (dAtA []byte, err error)
- func (m *RequestBlockProposal) MarshalTo(dAtA []byte) (int, error)
- func (*RequestBlockProposal) ProtoMessage()
- func (m *RequestBlockProposal) Reset()
- func (m *RequestBlockProposal) Size() (n int)
- func (this *RequestBlockProposal) String() string
- func (m *RequestBlockProposal) Unmarshal(dAtA []byte) error
- func (m *RequestBlockProposal) XXX_DiscardUnknown()
- func (m *RequestBlockProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RequestBlockProposal) XXX_Merge(src proto.Message)
- func (m *RequestBlockProposal) XXX_Size() int
- func (m *RequestBlockProposal) XXX_Unmarshal(b []byte) error
- type RequestBlockProposalReply
- func (*RequestBlockProposalReply) Descriptor() ([]byte, []int)
- func (this *RequestBlockProposalReply) Equal(that interface{}) bool
- func (m *RequestBlockProposalReply) GetBlock() []byte
- func (this *RequestBlockProposalReply) GoString() string
- func (m *RequestBlockProposalReply) Marshal() (dAtA []byte, err error)
- func (m *RequestBlockProposalReply) MarshalTo(dAtA []byte) (int, error)
- func (*RequestBlockProposalReply) ProtoMessage()
- func (m *RequestBlockProposalReply) Reset()
- func (m *RequestBlockProposalReply) Size() (n int)
- func (this *RequestBlockProposalReply) String() string
- func (m *RequestBlockProposalReply) Unmarshal(dAtA []byte) error
- func (m *RequestBlockProposalReply) XXX_DiscardUnknown()
- func (m *RequestBlockProposalReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RequestBlockProposalReply) XXX_Merge(src proto.Message)
- func (m *RequestBlockProposalReply) XXX_Size() int
- func (m *RequestBlockProposalReply) XXX_Unmarshal(b []byte) error
- type SignedMessage
- func (*SignedMessage) Descriptor() ([]byte, []int)
- func (this *SignedMessage) Equal(that interface{}) bool
- func (m *SignedMessage) GetMessage() []byte
- func (m *SignedMessage) GetSignature() []byte
- func (this *SignedMessage) GoString() string
- func (m *SignedMessage) Marshal() (dAtA []byte, err error)
- func (m *SignedMessage) MarshalTo(dAtA []byte) (int, error)
- func (*SignedMessage) ProtoMessage()
- func (m *SignedMessage) Reset()
- func (m *SignedMessage) Size() (n int)
- func (this *SignedMessage) String() string
- func (m *SignedMessage) Unmarshal(dAtA []byte) error
- func (m *SignedMessage) XXX_DiscardUnknown()
- func (m *SignedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedMessage) XXX_Merge(src proto.Message)
- func (m *SignedMessage) XXX_Size() int
- func (m *SignedMessage) XXX_Unmarshal(b []byte) error
- type SyncState
- type Transactions
- func (*Transactions) Descriptor() ([]byte, []int)
- func (this *Transactions) Equal(that interface{}) bool
- func (m *Transactions) GetTransactions() [][]byte
- func (this *Transactions) GoString() string
- func (m *Transactions) Marshal() (dAtA []byte, err error)
- func (m *Transactions) MarshalTo(dAtA []byte) (int, error)
- func (*Transactions) ProtoMessage()
- func (m *Transactions) Reset()
- func (m *Transactions) Size() (n int)
- func (this *Transactions) String() string
- func (m *Transactions) Unmarshal(dAtA []byte) error
- func (m *Transactions) XXX_DiscardUnknown()
- func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Transactions) XXX_Merge(src proto.Message)
- func (m *Transactions) XXX_Size() int
- func (m *Transactions) XXX_Unmarshal(b []byte) error
- type UnsignedMessage
- func (*UnsignedMessage) Descriptor() ([]byte, []int)
- func (this *UnsignedMessage) Equal(that interface{}) bool
- func (m *UnsignedMessage) GetMessage() []byte
- func (m *UnsignedMessage) GetMessageType() MessageType
- func (this *UnsignedMessage) GoString() string
- func (m *UnsignedMessage) Marshal() (dAtA []byte, err error)
- func (m *UnsignedMessage) MarshalTo(dAtA []byte) (int, error)
- func (*UnsignedMessage) ProtoMessage()
- func (m *UnsignedMessage) Reset()
- func (m *UnsignedMessage) Size() (n int)
- func (this *UnsignedMessage) String() string
- func (m *UnsignedMessage) Unmarshal(dAtA []byte) error
- func (m *UnsignedMessage) XXX_DiscardUnknown()
- func (m *UnsignedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnsignedMessage) XXX_Merge(src proto.Message)
- func (m *UnsignedMessage) XXX_Size() int
- func (m *UnsignedMessage) XXX_Unmarshal(b []byte) error
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (this *Vote) Equal(that interface{}) bool
- func (m *Vote) GetBlockHash() []byte
- func (m *Vote) GetHeight() uint32
- func (this *Vote) GoString() string
- func (m *Vote) Marshal() (dAtA []byte, err error)
- func (m *Vote) MarshalTo(dAtA []byte) (int, error)
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (this *Vote) String() string
- func (m *Vote) Unmarshal(dAtA []byte) error
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthClientmessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClientmessage = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthNode = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNode = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthNodemessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNodemessage = fmt.Errorf("proto: integer overflow") )
var AllowedBroadcastPullMessageType_name = map[int32]string{
0: "ALLOW_BROADCAST_PULL_PLACEHOLDER_DO_NOT_USE",
}
var AllowedBroadcastPullMessageType_value = map[string]int32{
"ALLOW_BROADCAST_PULL_PLACEHOLDER_DO_NOT_USE": 0,
}
var AllowedBroadcastPushMessageType_name = map[int32]string{
0: "ALLOW_BROADCAST_PUSH_PLACEHOLDER_DO_NOT_USE",
12: "ALLOW_BROADCAST_PUSH_TRANSACTIONS",
}
var AllowedBroadcastPushMessageType_value = map[string]int32{
"ALLOW_BROADCAST_PUSH_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_BROADCAST_PUSH_TRANSACTIONS": 12,
}
var AllowedBroadcastTreeMessageType_name = map[int32]string{
0: "ALLOW_BROADCAST_TREE_PLACEHOLDER_DO_NOT_USE",
12: "ALLOW_BROADCAST_TREE_TRANSACTIONS",
}
var AllowedBroadcastTreeMessageType_value = map[string]int32{
"ALLOW_BROADCAST_TREE_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_BROADCAST_TREE_TRANSACTIONS": 12,
}
var AllowedDirectMessageType_name = map[int32]string{
0: "ALLOW_DIRECT_PLACEHOLDER_DO_NOT_USE",
1: "ALLOW_DIRECT_VOTE",
2: "ALLOW_DIRECT_I_HAVE_BLOCK_PROPOSAL",
3: "ALLOW_DIRECT_REQUEST_BLOCK_PROPOSAL",
4: "ALLOW_DIRECT_REQUEST_BLOCK_REPLY",
5: "ALLOW_DIRECT_GET_CONSENSUS_STATE",
6: "ALLOW_DIRECT_GET_CONSENSUS_STATE_REPLY",
7: "ALLOW_DIRECT_GET_BLOCK_HEADERS",
8: "ALLOW_DIRECT_GET_BLOCK_HEADERS_REPLY",
9: "ALLOW_DIRECT_GET_BLOCKS",
10: "ALLOW_DIRECT_GET_BLOCKS_REPLY",
}
var AllowedDirectMessageType_value = map[string]int32{
"ALLOW_DIRECT_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_DIRECT_VOTE": 1,
"ALLOW_DIRECT_I_HAVE_BLOCK_PROPOSAL": 2,
"ALLOW_DIRECT_REQUEST_BLOCK_PROPOSAL": 3,
"ALLOW_DIRECT_REQUEST_BLOCK_REPLY": 4,
"ALLOW_DIRECT_GET_CONSENSUS_STATE": 5,
"ALLOW_DIRECT_GET_CONSENSUS_STATE_REPLY": 6,
"ALLOW_DIRECT_GET_BLOCK_HEADERS": 7,
"ALLOW_DIRECT_GET_BLOCK_HEADERS_REPLY": 8,
"ALLOW_DIRECT_GET_BLOCKS": 9,
"ALLOW_DIRECT_GET_BLOCKS_REPLY": 10,
}
var AllowedRelayMessageType_name = map[int32]string{
0: "ALLOW_RELAY_PLACEHOLDER_DO_NOT_USE",
11: "ALLOW_RELAY_RELAY",
}
var AllowedRelayMessageType_value = map[string]int32{
"ALLOW_RELAY_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_RELAY_RELAY": 11,
}
var AllowedSignedMessageType_name = map[int32]string{
0: "ALLOW_SIGNED_PLACEHOLDER_DO_NOT_USE",
1: "ALLOW_SIGNED_VOTE",
2: "ALLOW_SIGNED_I_HAVE_BLOCK_PROPOSAL",
3: "ALLOW_SIGNED_REQUEST_BLOCK_PROPOSAL",
5: "ALLOW_SIGNED_GET_CONSENSUS_STATE",
6: "ALLOW_SIGNED_GET_CONSENSUS_STATE_REPLY",
7: "ALLOW_SIGNED_GET_BLOCK_HEADERS",
9: "ALLOW_SIGNED_GET_BLOCKS",
}
var AllowedSignedMessageType_value = map[string]int32{
"ALLOW_SIGNED_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_SIGNED_VOTE": 1,
"ALLOW_SIGNED_I_HAVE_BLOCK_PROPOSAL": 2,
"ALLOW_SIGNED_REQUEST_BLOCK_PROPOSAL": 3,
"ALLOW_SIGNED_GET_CONSENSUS_STATE": 5,
"ALLOW_SIGNED_GET_CONSENSUS_STATE_REPLY": 6,
"ALLOW_SIGNED_GET_BLOCK_HEADERS": 7,
"ALLOW_SIGNED_GET_BLOCKS": 9,
}
var AllowedUnsignedMessageType_name = map[int32]string{
0: "ALLOW_UNSIGNED_PLACEHOLDER_DO_NOT_USE",
4: "ALLOW_UNSIGNED_REQUEST_BLOCK_REPLY",
8: "ALLOW_UNSIGNED_GET_BLOCK_HEADERS_REPLY",
10: "ALLOW_UNSIGNED_GET_BLOCKS_REPLY",
11: "ALLOW_UNSIGNED_RELAY",
12: "ALLOW_UNSIGNED_TRANSACTIONS",
}
var AllowedUnsignedMessageType_value = map[string]int32{
"ALLOW_UNSIGNED_PLACEHOLDER_DO_NOT_USE": 0,
"ALLOW_UNSIGNED_REQUEST_BLOCK_REPLY": 4,
"ALLOW_UNSIGNED_GET_BLOCK_HEADERS_REPLY": 8,
"ALLOW_UNSIGNED_GET_BLOCKS_REPLY": 10,
"ALLOW_UNSIGNED_RELAY": 11,
"ALLOW_UNSIGNED_TRANSACTIONS": 12,
}
var MessageType_name = map[int32]string{
0: "MESSAGE_TYPE_PLACEHOLDER_DO_NOT_USE",
1: "VOTE",
2: "I_HAVE_BLOCK_PROPOSAL",
3: "REQUEST_BLOCK_PROPOSAL",
4: "REQUEST_BLOCK_PROPOSAL_REPLY",
5: "GET_CONSENSUS_STATE",
6: "GET_CONSENSUS_STATE_REPLY",
7: "GET_BLOCK_HEADERS",
8: "GET_BLOCK_HEADERS_REPLY",
9: "GET_BLOCKS",
10: "GET_BLOCKS_REPLY",
11: "RELAY",
12: "TRANSACTIONS",
}
var MessageType_value = map[string]int32{
"MESSAGE_TYPE_PLACEHOLDER_DO_NOT_USE": 0,
"VOTE": 1,
"I_HAVE_BLOCK_PROPOSAL": 2,
"REQUEST_BLOCK_PROPOSAL": 3,
"REQUEST_BLOCK_PROPOSAL_REPLY": 4,
"GET_CONSENSUS_STATE": 5,
"GET_CONSENSUS_STATE_REPLY": 6,
"GET_BLOCK_HEADERS": 7,
"GET_BLOCK_HEADERS_REPLY": 8,
"GET_BLOCKS": 9,
"GET_BLOCKS_REPLY": 10,
"RELAY": 11,
"TRANSACTIONS": 12,
}
var SyncState_name = map[int32]string{
0: "SyncStarted",
1: "SyncFinished",
2: "PersistFinished",
3: "WaitForSyncing",
}
var SyncState_value = map[string]int32{
"SyncStarted": 0,
"SyncFinished": 1,
"PersistFinished": 2,
"WaitForSyncing": 3,
}
Functions ¶
This section is empty.
Types ¶
type AllowedBroadcastPullMessageType ¶
type AllowedBroadcastPullMessageType int32
Message type that can be sent as broadcast_pull message Name doesn't matter, but value nees to match the value in MessageType
const (
ALLOW_BROADCAST_PULL_PLACEHOLDER_DO_NOT_USE AllowedBroadcastPullMessageType = 0
)
func (AllowedBroadcastPullMessageType) EnumDescriptor ¶
func (AllowedBroadcastPullMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedBroadcastPullMessageType) String ¶
func (x AllowedBroadcastPullMessageType) String() string
type AllowedBroadcastPushMessageType ¶
type AllowedBroadcastPushMessageType int32
Message type that can be sent as broadcast_push message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_BROADCAST_PUSH_PLACEHOLDER_DO_NOT_USE AllowedBroadcastPushMessageType = 0 ALLOW_BROADCAST_PUSH_TRANSACTIONS AllowedBroadcastPushMessageType = 12 )
func (AllowedBroadcastPushMessageType) EnumDescriptor ¶
func (AllowedBroadcastPushMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedBroadcastPushMessageType) String ¶
func (x AllowedBroadcastPushMessageType) String() string
type AllowedBroadcastTreeMessageType ¶
type AllowedBroadcastTreeMessageType int32
Message type that can be sent as broadcast_tree message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_BROADCAST_TREE_PLACEHOLDER_DO_NOT_USE AllowedBroadcastTreeMessageType = 0 ALLOW_BROADCAST_TREE_TRANSACTIONS AllowedBroadcastTreeMessageType = 12 )
func (AllowedBroadcastTreeMessageType) EnumDescriptor ¶
func (AllowedBroadcastTreeMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedBroadcastTreeMessageType) String ¶
func (x AllowedBroadcastTreeMessageType) String() string
type AllowedDirectMessageType ¶
type AllowedDirectMessageType int32
Message type that can be sent as direct message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_DIRECT_PLACEHOLDER_DO_NOT_USE AllowedDirectMessageType = 0 ALLOW_DIRECT_VOTE AllowedDirectMessageType = 1 ALLOW_DIRECT_I_HAVE_BLOCK_PROPOSAL AllowedDirectMessageType = 2 ALLOW_DIRECT_REQUEST_BLOCK_PROPOSAL AllowedDirectMessageType = 3 ALLOW_DIRECT_REQUEST_BLOCK_REPLY AllowedDirectMessageType = 4 ALLOW_DIRECT_GET_CONSENSUS_STATE AllowedDirectMessageType = 5 ALLOW_DIRECT_GET_CONSENSUS_STATE_REPLY AllowedDirectMessageType = 6 ALLOW_DIRECT_GET_BLOCK_HEADERS AllowedDirectMessageType = 7 ALLOW_DIRECT_GET_BLOCK_HEADERS_REPLY AllowedDirectMessageType = 8 ALLOW_DIRECT_GET_BLOCKS AllowedDirectMessageType = 9 ALLOW_DIRECT_GET_BLOCKS_REPLY AllowedDirectMessageType = 10 )
func (AllowedDirectMessageType) EnumDescriptor ¶
func (AllowedDirectMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedDirectMessageType) String ¶
func (x AllowedDirectMessageType) String() string
type AllowedRelayMessageType ¶
type AllowedRelayMessageType int32
Message type that can be sent as relay message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_RELAY_PLACEHOLDER_DO_NOT_USE AllowedRelayMessageType = 0 ALLOW_RELAY_RELAY AllowedRelayMessageType = 11 )
func (AllowedRelayMessageType) EnumDescriptor ¶
func (AllowedRelayMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedRelayMessageType) String ¶
func (x AllowedRelayMessageType) String() string
type AllowedSignedMessageType ¶
type AllowedSignedMessageType int32
Message type that can be signed message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_SIGNED_PLACEHOLDER_DO_NOT_USE AllowedSignedMessageType = 0 ALLOW_SIGNED_VOTE AllowedSignedMessageType = 1 ALLOW_SIGNED_I_HAVE_BLOCK_PROPOSAL AllowedSignedMessageType = 2 ALLOW_SIGNED_REQUEST_BLOCK_PROPOSAL AllowedSignedMessageType = 3 ALLOW_SIGNED_GET_CONSENSUS_STATE AllowedSignedMessageType = 5 ALLOW_SIGNED_GET_CONSENSUS_STATE_REPLY AllowedSignedMessageType = 6 ALLOW_SIGNED_GET_BLOCK_HEADERS AllowedSignedMessageType = 7 ALLOW_SIGNED_GET_BLOCKS AllowedSignedMessageType = 9 )
func (AllowedSignedMessageType) EnumDescriptor ¶
func (AllowedSignedMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedSignedMessageType) String ¶
func (x AllowedSignedMessageType) String() string
type AllowedUnsignedMessageType ¶
type AllowedUnsignedMessageType int32
Message type that can be unsigned message Name doesn't matter, but value nees to match the value in MessageType
const ( ALLOW_UNSIGNED_PLACEHOLDER_DO_NOT_USE AllowedUnsignedMessageType = 0 ALLOW_UNSIGNED_REQUEST_BLOCK_REPLY AllowedUnsignedMessageType = 4 ALLOW_UNSIGNED_GET_BLOCK_HEADERS_REPLY AllowedUnsignedMessageType = 8 ALLOW_UNSIGNED_GET_BLOCKS_REPLY AllowedUnsignedMessageType = 10 ALLOW_UNSIGNED_RELAY AllowedUnsignedMessageType = 11 ALLOW_UNSIGNED_TRANSACTIONS AllowedUnsignedMessageType = 12 )
func (AllowedUnsignedMessageType) EnumDescriptor ¶
func (AllowedUnsignedMessageType) EnumDescriptor() ([]byte, []int)
func (AllowedUnsignedMessageType) String ¶
func (x AllowedUnsignedMessageType) String() string
type GetBlockHeaders ¶
type GetBlockHeaders struct { StartHeight uint32 `protobuf:"varint,1,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` EndHeight uint32 `protobuf:"varint,2,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` }
func NewPopulatedGetBlockHeaders ¶
func NewPopulatedGetBlockHeaders(r randyNodemessage, easy bool) *GetBlockHeaders
func (*GetBlockHeaders) Descriptor ¶
func (*GetBlockHeaders) Descriptor() ([]byte, []int)
func (*GetBlockHeaders) Equal ¶
func (this *GetBlockHeaders) Equal(that interface{}) bool
func (*GetBlockHeaders) GetEndHeight ¶
func (m *GetBlockHeaders) GetEndHeight() uint32
func (*GetBlockHeaders) GetStartHeight ¶
func (m *GetBlockHeaders) GetStartHeight() uint32
func (*GetBlockHeaders) GoString ¶
func (this *GetBlockHeaders) GoString() string
func (*GetBlockHeaders) Marshal ¶
func (m *GetBlockHeaders) Marshal() (dAtA []byte, err error)
func (*GetBlockHeaders) ProtoMessage ¶
func (*GetBlockHeaders) ProtoMessage()
func (*GetBlockHeaders) Reset ¶
func (m *GetBlockHeaders) Reset()
func (*GetBlockHeaders) Size ¶
func (m *GetBlockHeaders) Size() (n int)
func (*GetBlockHeaders) String ¶
func (this *GetBlockHeaders) String() string
func (*GetBlockHeaders) Unmarshal ¶
func (m *GetBlockHeaders) Unmarshal(dAtA []byte) error
func (*GetBlockHeaders) XXX_DiscardUnknown ¶
func (m *GetBlockHeaders) XXX_DiscardUnknown()
func (*GetBlockHeaders) XXX_Marshal ¶
func (m *GetBlockHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockHeaders) XXX_Merge ¶
func (dst *GetBlockHeaders) XXX_Merge(src proto.Message)
func (*GetBlockHeaders) XXX_Size ¶
func (m *GetBlockHeaders) XXX_Size() int
func (*GetBlockHeaders) XXX_Unmarshal ¶
func (m *GetBlockHeaders) XXX_Unmarshal(b []byte) error
type GetBlockHeadersReply ¶
type GetBlockHeadersReply struct {
BlockHeaders [][]byte `protobuf:"bytes,1,rep,name=block_headers,json=blockHeaders" json:"block_headers,omitempty"`
}
func NewPopulatedGetBlockHeadersReply ¶
func NewPopulatedGetBlockHeadersReply(r randyNodemessage, easy bool) *GetBlockHeadersReply
func (*GetBlockHeadersReply) Descriptor ¶
func (*GetBlockHeadersReply) Descriptor() ([]byte, []int)
func (*GetBlockHeadersReply) Equal ¶
func (this *GetBlockHeadersReply) Equal(that interface{}) bool
func (*GetBlockHeadersReply) GetBlockHeaders ¶
func (m *GetBlockHeadersReply) GetBlockHeaders() [][]byte
func (*GetBlockHeadersReply) GoString ¶
func (this *GetBlockHeadersReply) GoString() string
func (*GetBlockHeadersReply) Marshal ¶
func (m *GetBlockHeadersReply) Marshal() (dAtA []byte, err error)
func (*GetBlockHeadersReply) MarshalTo ¶
func (m *GetBlockHeadersReply) MarshalTo(dAtA []byte) (int, error)
func (*GetBlockHeadersReply) ProtoMessage ¶
func (*GetBlockHeadersReply) ProtoMessage()
func (*GetBlockHeadersReply) Reset ¶
func (m *GetBlockHeadersReply) Reset()
func (*GetBlockHeadersReply) Size ¶
func (m *GetBlockHeadersReply) Size() (n int)
func (*GetBlockHeadersReply) String ¶
func (this *GetBlockHeadersReply) String() string
func (*GetBlockHeadersReply) Unmarshal ¶
func (m *GetBlockHeadersReply) Unmarshal(dAtA []byte) error
func (*GetBlockHeadersReply) XXX_DiscardUnknown ¶
func (m *GetBlockHeadersReply) XXX_DiscardUnknown()
func (*GetBlockHeadersReply) XXX_Marshal ¶
func (m *GetBlockHeadersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockHeadersReply) XXX_Merge ¶
func (dst *GetBlockHeadersReply) XXX_Merge(src proto.Message)
func (*GetBlockHeadersReply) XXX_Size ¶
func (m *GetBlockHeadersReply) XXX_Size() int
func (*GetBlockHeadersReply) XXX_Unmarshal ¶
func (m *GetBlockHeadersReply) XXX_Unmarshal(b []byte) error
type GetBlocks ¶
type GetBlocks struct { StartHeight uint32 `protobuf:"varint,1,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` EndHeight uint32 `protobuf:"varint,2,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` }
func NewPopulatedGetBlocks ¶
func (*GetBlocks) Descriptor ¶
func (*GetBlocks) GetEndHeight ¶
func (*GetBlocks) GetStartHeight ¶
func (*GetBlocks) ProtoMessage ¶
func (*GetBlocks) ProtoMessage()
func (*GetBlocks) XXX_DiscardUnknown ¶
func (m *GetBlocks) XXX_DiscardUnknown()
func (*GetBlocks) XXX_Marshal ¶
func (*GetBlocks) XXX_Unmarshal ¶
type GetBlocksReply ¶
type GetBlocksReply struct {
Blocks [][]byte `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"`
}
func NewPopulatedGetBlocksReply ¶
func NewPopulatedGetBlocksReply(r randyNodemessage, easy bool) *GetBlocksReply
func (*GetBlocksReply) Descriptor ¶
func (*GetBlocksReply) Descriptor() ([]byte, []int)
func (*GetBlocksReply) Equal ¶
func (this *GetBlocksReply) Equal(that interface{}) bool
func (*GetBlocksReply) GetBlocks ¶
func (m *GetBlocksReply) GetBlocks() [][]byte
func (*GetBlocksReply) GoString ¶
func (this *GetBlocksReply) GoString() string
func (*GetBlocksReply) Marshal ¶
func (m *GetBlocksReply) Marshal() (dAtA []byte, err error)
func (*GetBlocksReply) ProtoMessage ¶
func (*GetBlocksReply) ProtoMessage()
func (*GetBlocksReply) Reset ¶
func (m *GetBlocksReply) Reset()
func (*GetBlocksReply) Size ¶
func (m *GetBlocksReply) Size() (n int)
func (*GetBlocksReply) String ¶
func (this *GetBlocksReply) String() string
func (*GetBlocksReply) Unmarshal ¶
func (m *GetBlocksReply) Unmarshal(dAtA []byte) error
func (*GetBlocksReply) XXX_DiscardUnknown ¶
func (m *GetBlocksReply) XXX_DiscardUnknown()
func (*GetBlocksReply) XXX_Marshal ¶
func (m *GetBlocksReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlocksReply) XXX_Merge ¶
func (dst *GetBlocksReply) XXX_Merge(src proto.Message)
func (*GetBlocksReply) XXX_Size ¶
func (m *GetBlocksReply) XXX_Size() int
func (*GetBlocksReply) XXX_Unmarshal ¶
func (m *GetBlocksReply) XXX_Unmarshal(b []byte) error
type GetConsensusState ¶
type GetConsensusState struct { }
func NewPopulatedGetConsensusState ¶
func NewPopulatedGetConsensusState(r randyNodemessage, easy bool) *GetConsensusState
func (*GetConsensusState) Descriptor ¶
func (*GetConsensusState) Descriptor() ([]byte, []int)
func (*GetConsensusState) Equal ¶
func (this *GetConsensusState) Equal(that interface{}) bool
func (*GetConsensusState) GoString ¶
func (this *GetConsensusState) GoString() string
func (*GetConsensusState) Marshal ¶
func (m *GetConsensusState) Marshal() (dAtA []byte, err error)
func (*GetConsensusState) MarshalTo ¶
func (m *GetConsensusState) MarshalTo(dAtA []byte) (int, error)
func (*GetConsensusState) ProtoMessage ¶
func (*GetConsensusState) ProtoMessage()
func (*GetConsensusState) Reset ¶
func (m *GetConsensusState) Reset()
func (*GetConsensusState) Size ¶
func (m *GetConsensusState) Size() (n int)
func (*GetConsensusState) String ¶
func (this *GetConsensusState) String() string
func (*GetConsensusState) Unmarshal ¶
func (m *GetConsensusState) Unmarshal(dAtA []byte) error
func (*GetConsensusState) XXX_DiscardUnknown ¶
func (m *GetConsensusState) XXX_DiscardUnknown()
func (*GetConsensusState) XXX_Marshal ¶
func (m *GetConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetConsensusState) XXX_Merge ¶
func (dst *GetConsensusState) XXX_Merge(src proto.Message)
func (*GetConsensusState) XXX_Size ¶
func (m *GetConsensusState) XXX_Size() int
func (*GetConsensusState) XXX_Unmarshal ¶
func (m *GetConsensusState) XXX_Unmarshal(b []byte) error
type GetConsensusStateReply ¶
type GetConsensusStateReply struct { LedgerHeight uint32 `protobuf:"varint,1,opt,name=ledger_height,json=ledgerHeight,proto3" json:"ledger_height,omitempty"` LedgerBlockHash []byte `protobuf:"bytes,2,opt,name=ledger_block_hash,json=ledgerBlockHash,proto3" json:"ledger_block_hash,omitempty"` ConsensusHeight uint32 `protobuf:"varint,3,opt,name=consensus_height,json=consensusHeight,proto3" json:"consensus_height,omitempty"` SyncState SyncState `protobuf:"varint,4,opt,name=sync_state,json=syncState,proto3,enum=pb.SyncState" json:"sync_state,omitempty"` }
func NewPopulatedGetConsensusStateReply ¶
func NewPopulatedGetConsensusStateReply(r randyNodemessage, easy bool) *GetConsensusStateReply
func (*GetConsensusStateReply) Descriptor ¶
func (*GetConsensusStateReply) Descriptor() ([]byte, []int)
func (*GetConsensusStateReply) Equal ¶
func (this *GetConsensusStateReply) Equal(that interface{}) bool
func (*GetConsensusStateReply) GetConsensusHeight ¶
func (m *GetConsensusStateReply) GetConsensusHeight() uint32
func (*GetConsensusStateReply) GetLedgerBlockHash ¶
func (m *GetConsensusStateReply) GetLedgerBlockHash() []byte
func (*GetConsensusStateReply) GetLedgerHeight ¶
func (m *GetConsensusStateReply) GetLedgerHeight() uint32
func (*GetConsensusStateReply) GetSyncState ¶
func (m *GetConsensusStateReply) GetSyncState() SyncState
func (*GetConsensusStateReply) GoString ¶
func (this *GetConsensusStateReply) GoString() string
func (*GetConsensusStateReply) Marshal ¶
func (m *GetConsensusStateReply) Marshal() (dAtA []byte, err error)
func (*GetConsensusStateReply) MarshalTo ¶
func (m *GetConsensusStateReply) MarshalTo(dAtA []byte) (int, error)
func (*GetConsensusStateReply) ProtoMessage ¶
func (*GetConsensusStateReply) ProtoMessage()
func (*GetConsensusStateReply) Reset ¶
func (m *GetConsensusStateReply) Reset()
func (*GetConsensusStateReply) Size ¶
func (m *GetConsensusStateReply) Size() (n int)
func (*GetConsensusStateReply) String ¶
func (this *GetConsensusStateReply) String() string
func (*GetConsensusStateReply) Unmarshal ¶
func (m *GetConsensusStateReply) Unmarshal(dAtA []byte) error
func (*GetConsensusStateReply) XXX_DiscardUnknown ¶
func (m *GetConsensusStateReply) XXX_DiscardUnknown()
func (*GetConsensusStateReply) XXX_Marshal ¶
func (m *GetConsensusStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetConsensusStateReply) XXX_Merge ¶
func (dst *GetConsensusStateReply) XXX_Merge(src proto.Message)
func (*GetConsensusStateReply) XXX_Size ¶
func (m *GetConsensusStateReply) XXX_Size() int
func (*GetConsensusStateReply) XXX_Unmarshal ¶
func (m *GetConsensusStateReply) XXX_Unmarshal(b []byte) error
type IHaveBlockProposal ¶
type IHaveBlockProposal struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` }
func NewPopulatedIHaveBlockProposal ¶
func NewPopulatedIHaveBlockProposal(r randyNodemessage, easy bool) *IHaveBlockProposal
func (*IHaveBlockProposal) Descriptor ¶
func (*IHaveBlockProposal) Descriptor() ([]byte, []int)
func (*IHaveBlockProposal) Equal ¶
func (this *IHaveBlockProposal) Equal(that interface{}) bool
func (*IHaveBlockProposal) GetBlockHash ¶
func (m *IHaveBlockProposal) GetBlockHash() []byte
func (*IHaveBlockProposal) GetHeight ¶
func (m *IHaveBlockProposal) GetHeight() uint32
func (*IHaveBlockProposal) GoString ¶
func (this *IHaveBlockProposal) GoString() string
func (*IHaveBlockProposal) Marshal ¶
func (m *IHaveBlockProposal) Marshal() (dAtA []byte, err error)
func (*IHaveBlockProposal) MarshalTo ¶
func (m *IHaveBlockProposal) MarshalTo(dAtA []byte) (int, error)
func (*IHaveBlockProposal) ProtoMessage ¶
func (*IHaveBlockProposal) ProtoMessage()
func (*IHaveBlockProposal) Reset ¶
func (m *IHaveBlockProposal) Reset()
func (*IHaveBlockProposal) Size ¶
func (m *IHaveBlockProposal) Size() (n int)
func (*IHaveBlockProposal) String ¶
func (this *IHaveBlockProposal) String() string
func (*IHaveBlockProposal) Unmarshal ¶
func (m *IHaveBlockProposal) Unmarshal(dAtA []byte) error
func (*IHaveBlockProposal) XXX_DiscardUnknown ¶
func (m *IHaveBlockProposal) XXX_DiscardUnknown()
func (*IHaveBlockProposal) XXX_Marshal ¶
func (m *IHaveBlockProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IHaveBlockProposal) XXX_Merge ¶
func (dst *IHaveBlockProposal) XXX_Merge(src proto.Message)
func (*IHaveBlockProposal) XXX_Size ¶
func (m *IHaveBlockProposal) XXX_Size() int
func (*IHaveBlockProposal) XXX_Unmarshal ¶
func (m *IHaveBlockProposal) XXX_Unmarshal(b []byte) error
type InboundMessage ¶
type InboundMessage struct { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func NewPopulatedInboundMessage ¶
func NewPopulatedInboundMessage(r randyClientmessage, easy bool) *InboundMessage
func (*InboundMessage) Descriptor ¶
func (*InboundMessage) Descriptor() ([]byte, []int)
func (*InboundMessage) Equal ¶
func (this *InboundMessage) Equal(that interface{}) bool
func (*InboundMessage) GetPayload ¶
func (m *InboundMessage) GetPayload() []byte
func (*InboundMessage) GetSrc ¶
func (m *InboundMessage) GetSrc() string
func (*InboundMessage) GoString ¶
func (this *InboundMessage) GoString() string
func (*InboundMessage) Marshal ¶
func (m *InboundMessage) Marshal() (dAtA []byte, err error)
func (*InboundMessage) ProtoMessage ¶
func (*InboundMessage) ProtoMessage()
func (*InboundMessage) Reset ¶
func (m *InboundMessage) Reset()
func (*InboundMessage) Size ¶
func (m *InboundMessage) Size() (n int)
func (*InboundMessage) String ¶
func (this *InboundMessage) String() string
func (*InboundMessage) Unmarshal ¶
func (m *InboundMessage) Unmarshal(dAtA []byte) error
func (*InboundMessage) XXX_DiscardUnknown ¶
func (m *InboundMessage) XXX_DiscardUnknown()
func (*InboundMessage) XXX_Marshal ¶
func (m *InboundMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InboundMessage) XXX_Merge ¶
func (dst *InboundMessage) XXX_Merge(src proto.Message)
func (*InboundMessage) XXX_Size ¶
func (m *InboundMessage) XXX_Size() int
func (*InboundMessage) XXX_Unmarshal ¶
func (m *InboundMessage) XXX_Unmarshal(b []byte) error
type MessageType ¶
type MessageType int32
const ( MESSAGE_TYPE_PLACEHOLDER_DO_NOT_USE MessageType = 0 VOTE MessageType = 1 I_HAVE_BLOCK_PROPOSAL MessageType = 2 REQUEST_BLOCK_PROPOSAL MessageType = 3 REQUEST_BLOCK_PROPOSAL_REPLY MessageType = 4 GET_CONSENSUS_STATE MessageType = 5 GET_CONSENSUS_STATE_REPLY MessageType = 6 GET_BLOCK_HEADERS MessageType = 7 GET_BLOCK_HEADERS_REPLY MessageType = 8 GET_BLOCKS MessageType = 9 GET_BLOCKS_REPLY MessageType = 10 RELAY MessageType = 11 TRANSACTIONS MessageType = 12 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
type NodeData ¶
type NodeData struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` WebsocketPort uint32 `protobuf:"varint,2,opt,name=websocket_port,json=websocketPort,proto3" json:"websocket_port,omitempty"` JsonRpcPort uint32 `protobuf:"varint,3,opt,name=json_rpc_port,json=jsonRpcPort,proto3" json:"json_rpc_port,omitempty"` ProtocolVersion uint32 `protobuf:"varint,5,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` }
func NewPopulatedNodeData ¶
func (*NodeData) Descriptor ¶
func (*NodeData) GetJsonRpcPort ¶
func (*NodeData) GetProtocolVersion ¶
func (*NodeData) GetPublicKey ¶
func (*NodeData) GetWebsocketPort ¶
func (*NodeData) ProtoMessage ¶
func (*NodeData) ProtoMessage()
func (*NodeData) XXX_DiscardUnknown ¶
func (m *NodeData) XXX_DiscardUnknown()
func (*NodeData) XXX_Marshal ¶
func (*NodeData) XXX_Unmarshal ¶
type OutboundMessage ¶
type OutboundMessage struct { Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Dests []string `protobuf:"bytes,3,rep,name=dests" json:"dests,omitempty"` MaxHoldingSeconds uint32 `protobuf:"varint,4,opt,name=max_holding_seconds,json=maxHoldingSeconds,proto3" json:"max_holding_seconds,omitempty"` }
func NewPopulatedOutboundMessage ¶
func NewPopulatedOutboundMessage(r randyClientmessage, easy bool) *OutboundMessage
func (*OutboundMessage) Descriptor ¶
func (*OutboundMessage) Descriptor() ([]byte, []int)
func (*OutboundMessage) Equal ¶
func (this *OutboundMessage) Equal(that interface{}) bool
func (*OutboundMessage) GetDest ¶
func (m *OutboundMessage) GetDest() string
func (*OutboundMessage) GetDests ¶
func (m *OutboundMessage) GetDests() []string
func (*OutboundMessage) GetMaxHoldingSeconds ¶
func (m *OutboundMessage) GetMaxHoldingSeconds() uint32
func (*OutboundMessage) GetPayload ¶
func (m *OutboundMessage) GetPayload() []byte
func (*OutboundMessage) GoString ¶
func (this *OutboundMessage) GoString() string
func (*OutboundMessage) Marshal ¶
func (m *OutboundMessage) Marshal() (dAtA []byte, err error)
func (*OutboundMessage) ProtoMessage ¶
func (*OutboundMessage) ProtoMessage()
func (*OutboundMessage) Reset ¶
func (m *OutboundMessage) Reset()
func (*OutboundMessage) Size ¶
func (m *OutboundMessage) Size() (n int)
func (*OutboundMessage) String ¶
func (this *OutboundMessage) String() string
func (*OutboundMessage) Unmarshal ¶
func (m *OutboundMessage) Unmarshal(dAtA []byte) error
func (*OutboundMessage) XXX_DiscardUnknown ¶
func (m *OutboundMessage) XXX_DiscardUnknown()
func (*OutboundMessage) XXX_Marshal ¶
func (m *OutboundMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutboundMessage) XXX_Merge ¶
func (dst *OutboundMessage) XXX_Merge(src proto.Message)
func (*OutboundMessage) XXX_Size ¶
func (m *OutboundMessage) XXX_Size() int
func (*OutboundMessage) XXX_Unmarshal ¶
func (m *OutboundMessage) XXX_Unmarshal(b []byte) error
type Relay ¶
type Relay struct { SrcAddr string `protobuf:"bytes,1,opt,name=src_addr,json=srcAddr,proto3" json:"src_addr,omitempty"` DestId []byte `protobuf:"bytes,2,opt,name=dest_id,json=destId,proto3" json:"dest_id,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` SigChain *por.SigChain `protobuf:"bytes,4,opt,name=sig_chain,json=sigChain" json:"sig_chain,omitempty"` MaxHoldingSeconds uint32 `protobuf:"varint,5,opt,name=max_holding_seconds,json=maxHoldingSeconds,proto3" json:"max_holding_seconds,omitempty"` }
func NewPopulatedRelay ¶
func (*Relay) Descriptor ¶
func (*Relay) GetMaxHoldingSeconds ¶
func (*Relay) GetPayload ¶
func (*Relay) GetSigChain ¶
func (*Relay) GetSrcAddr ¶
func (*Relay) ProtoMessage ¶
func (*Relay) ProtoMessage()
func (*Relay) XXX_DiscardUnknown ¶
func (m *Relay) XXX_DiscardUnknown()
func (*Relay) XXX_Marshal ¶
func (*Relay) XXX_Unmarshal ¶
type RequestBlockProposal ¶
type RequestBlockProposal struct {
BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
}
func NewPopulatedRequestBlockProposal ¶
func NewPopulatedRequestBlockProposal(r randyNodemessage, easy bool) *RequestBlockProposal
func (*RequestBlockProposal) Descriptor ¶
func (*RequestBlockProposal) Descriptor() ([]byte, []int)
func (*RequestBlockProposal) Equal ¶
func (this *RequestBlockProposal) Equal(that interface{}) bool
func (*RequestBlockProposal) GetBlockHash ¶
func (m *RequestBlockProposal) GetBlockHash() []byte
func (*RequestBlockProposal) GoString ¶
func (this *RequestBlockProposal) GoString() string
func (*RequestBlockProposal) Marshal ¶
func (m *RequestBlockProposal) Marshal() (dAtA []byte, err error)
func (*RequestBlockProposal) MarshalTo ¶
func (m *RequestBlockProposal) MarshalTo(dAtA []byte) (int, error)
func (*RequestBlockProposal) ProtoMessage ¶
func (*RequestBlockProposal) ProtoMessage()
func (*RequestBlockProposal) Reset ¶
func (m *RequestBlockProposal) Reset()
func (*RequestBlockProposal) Size ¶
func (m *RequestBlockProposal) Size() (n int)
func (*RequestBlockProposal) String ¶
func (this *RequestBlockProposal) String() string
func (*RequestBlockProposal) Unmarshal ¶
func (m *RequestBlockProposal) Unmarshal(dAtA []byte) error
func (*RequestBlockProposal) XXX_DiscardUnknown ¶
func (m *RequestBlockProposal) XXX_DiscardUnknown()
func (*RequestBlockProposal) XXX_Marshal ¶
func (m *RequestBlockProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestBlockProposal) XXX_Merge ¶
func (dst *RequestBlockProposal) XXX_Merge(src proto.Message)
func (*RequestBlockProposal) XXX_Size ¶
func (m *RequestBlockProposal) XXX_Size() int
func (*RequestBlockProposal) XXX_Unmarshal ¶
func (m *RequestBlockProposal) XXX_Unmarshal(b []byte) error
type RequestBlockProposalReply ¶
type RequestBlockProposalReply struct {
Block []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
}
func NewPopulatedRequestBlockProposalReply ¶
func NewPopulatedRequestBlockProposalReply(r randyNodemessage, easy bool) *RequestBlockProposalReply
func (*RequestBlockProposalReply) Descriptor ¶
func (*RequestBlockProposalReply) Descriptor() ([]byte, []int)
func (*RequestBlockProposalReply) Equal ¶
func (this *RequestBlockProposalReply) Equal(that interface{}) bool
func (*RequestBlockProposalReply) GetBlock ¶
func (m *RequestBlockProposalReply) GetBlock() []byte
func (*RequestBlockProposalReply) GoString ¶
func (this *RequestBlockProposalReply) GoString() string
func (*RequestBlockProposalReply) Marshal ¶
func (m *RequestBlockProposalReply) Marshal() (dAtA []byte, err error)
func (*RequestBlockProposalReply) MarshalTo ¶
func (m *RequestBlockProposalReply) MarshalTo(dAtA []byte) (int, error)
func (*RequestBlockProposalReply) ProtoMessage ¶
func (*RequestBlockProposalReply) ProtoMessage()
func (*RequestBlockProposalReply) Reset ¶
func (m *RequestBlockProposalReply) Reset()
func (*RequestBlockProposalReply) Size ¶
func (m *RequestBlockProposalReply) Size() (n int)
func (*RequestBlockProposalReply) String ¶
func (this *RequestBlockProposalReply) String() string
func (*RequestBlockProposalReply) Unmarshal ¶
func (m *RequestBlockProposalReply) Unmarshal(dAtA []byte) error
func (*RequestBlockProposalReply) XXX_DiscardUnknown ¶
func (m *RequestBlockProposalReply) XXX_DiscardUnknown()
func (*RequestBlockProposalReply) XXX_Marshal ¶
func (m *RequestBlockProposalReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestBlockProposalReply) XXX_Merge ¶
func (dst *RequestBlockProposalReply) XXX_Merge(src proto.Message)
func (*RequestBlockProposalReply) XXX_Size ¶
func (m *RequestBlockProposalReply) XXX_Size() int
func (*RequestBlockProposalReply) XXX_Unmarshal ¶
func (m *RequestBlockProposalReply) XXX_Unmarshal(b []byte) error
type SignedMessage ¶
type SignedMessage struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
func NewPopulatedSignedMessage ¶
func NewPopulatedSignedMessage(r randyNodemessage, easy bool) *SignedMessage
func (*SignedMessage) Descriptor ¶
func (*SignedMessage) Descriptor() ([]byte, []int)
func (*SignedMessage) Equal ¶
func (this *SignedMessage) Equal(that interface{}) bool
func (*SignedMessage) GetMessage ¶
func (m *SignedMessage) GetMessage() []byte
func (*SignedMessage) GetSignature ¶
func (m *SignedMessage) GetSignature() []byte
func (*SignedMessage) GoString ¶
func (this *SignedMessage) GoString() string
func (*SignedMessage) Marshal ¶
func (m *SignedMessage) Marshal() (dAtA []byte, err error)
func (*SignedMessage) ProtoMessage ¶
func (*SignedMessage) ProtoMessage()
func (*SignedMessage) Reset ¶
func (m *SignedMessage) Reset()
func (*SignedMessage) Size ¶
func (m *SignedMessage) Size() (n int)
func (*SignedMessage) String ¶
func (this *SignedMessage) String() string
func (*SignedMessage) Unmarshal ¶
func (m *SignedMessage) Unmarshal(dAtA []byte) error
func (*SignedMessage) XXX_DiscardUnknown ¶
func (m *SignedMessage) XXX_DiscardUnknown()
func (*SignedMessage) XXX_Marshal ¶
func (m *SignedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedMessage) XXX_Merge ¶
func (dst *SignedMessage) XXX_Merge(src proto.Message)
func (*SignedMessage) XXX_Size ¶
func (m *SignedMessage) XXX_Size() int
func (*SignedMessage) XXX_Unmarshal ¶
func (m *SignedMessage) XXX_Unmarshal(b []byte) error
type Transactions ¶
type Transactions struct {
Transactions [][]byte `protobuf:"bytes,1,rep,name=transactions" json:"transactions,omitempty"`
}
func NewPopulatedTransactions ¶
func NewPopulatedTransactions(r randyNodemessage, easy bool) *Transactions
func (*Transactions) Descriptor ¶
func (*Transactions) Descriptor() ([]byte, []int)
func (*Transactions) Equal ¶
func (this *Transactions) Equal(that interface{}) bool
func (*Transactions) GetTransactions ¶
func (m *Transactions) GetTransactions() [][]byte
func (*Transactions) GoString ¶
func (this *Transactions) GoString() string
func (*Transactions) Marshal ¶
func (m *Transactions) Marshal() (dAtA []byte, err error)
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) Reset ¶
func (m *Transactions) Reset()
func (*Transactions) Size ¶
func (m *Transactions) Size() (n int)
func (*Transactions) String ¶
func (this *Transactions) String() string
func (*Transactions) Unmarshal ¶
func (m *Transactions) Unmarshal(dAtA []byte) error
func (*Transactions) XXX_DiscardUnknown ¶
func (m *Transactions) XXX_DiscardUnknown()
func (*Transactions) XXX_Marshal ¶
func (m *Transactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transactions) XXX_Merge ¶
func (dst *Transactions) XXX_Merge(src proto.Message)
func (*Transactions) XXX_Size ¶
func (m *Transactions) XXX_Size() int
func (*Transactions) XXX_Unmarshal ¶
func (m *Transactions) XXX_Unmarshal(b []byte) error
type UnsignedMessage ¶
type UnsignedMessage struct { MessageType MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=pb.MessageType" json:"message_type,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` }
func NewPopulatedUnsignedMessage ¶
func NewPopulatedUnsignedMessage(r randyNodemessage, easy bool) *UnsignedMessage
func (*UnsignedMessage) Descriptor ¶
func (*UnsignedMessage) Descriptor() ([]byte, []int)
func (*UnsignedMessage) Equal ¶
func (this *UnsignedMessage) Equal(that interface{}) bool
func (*UnsignedMessage) GetMessage ¶
func (m *UnsignedMessage) GetMessage() []byte
func (*UnsignedMessage) GetMessageType ¶
func (m *UnsignedMessage) GetMessageType() MessageType
func (*UnsignedMessage) GoString ¶
func (this *UnsignedMessage) GoString() string
func (*UnsignedMessage) Marshal ¶
func (m *UnsignedMessage) Marshal() (dAtA []byte, err error)
func (*UnsignedMessage) ProtoMessage ¶
func (*UnsignedMessage) ProtoMessage()
func (*UnsignedMessage) Reset ¶
func (m *UnsignedMessage) Reset()
func (*UnsignedMessage) Size ¶
func (m *UnsignedMessage) Size() (n int)
func (*UnsignedMessage) String ¶
func (this *UnsignedMessage) String() string
func (*UnsignedMessage) Unmarshal ¶
func (m *UnsignedMessage) Unmarshal(dAtA []byte) error
func (*UnsignedMessage) XXX_DiscardUnknown ¶
func (m *UnsignedMessage) XXX_DiscardUnknown()
func (*UnsignedMessage) XXX_Marshal ¶
func (m *UnsignedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnsignedMessage) XXX_Merge ¶
func (dst *UnsignedMessage) XXX_Merge(src proto.Message)
func (*UnsignedMessage) XXX_Size ¶
func (m *UnsignedMessage) XXX_Size() int
func (*UnsignedMessage) XXX_Unmarshal ¶
func (m *UnsignedMessage) XXX_Unmarshal(b []byte) error
type Vote ¶
type Vote struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` }
func NewPopulatedVote ¶
func (*Vote) Descriptor ¶
func (*Vote) GetBlockHash ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()