blockchain

package
v0.33.12 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockRequest

type BlockRequest struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

BlockRequest requests a block for a specific height

func (*BlockRequest) Descriptor

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

func (*BlockRequest) GetHeight

func (m *BlockRequest) GetHeight() int64

func (*BlockRequest) ProtoMessage

func (*BlockRequest) ProtoMessage()

func (*BlockRequest) Reset

func (m *BlockRequest) Reset()

func (*BlockRequest) String

func (m *BlockRequest) String() string

func (*BlockRequest) XXX_DiscardUnknown

func (m *BlockRequest) XXX_DiscardUnknown()

func (*BlockRequest) XXX_Marshal

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

func (*BlockRequest) XXX_Merge

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

func (*BlockRequest) XXX_Size

func (m *BlockRequest) XXX_Size() int

func (*BlockRequest) XXX_Unmarshal

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

type BlockResponse

type BlockResponse struct {
	Block                types.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

BlockResponse returns block to the requested

func (*BlockResponse) Descriptor

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

func (*BlockResponse) GetBlock

func (m *BlockResponse) GetBlock() types.Block

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) Reset

func (m *BlockResponse) Reset()

func (*BlockResponse) String

func (m *BlockResponse) String() string

func (*BlockResponse) XXX_DiscardUnknown

func (m *BlockResponse) XXX_DiscardUnknown()

func (*BlockResponse) XXX_Marshal

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

func (*BlockResponse) XXX_Merge

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

func (*BlockResponse) XXX_Size

func (m *BlockResponse) XXX_Size() int

func (*BlockResponse) XXX_Unmarshal

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

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//	*Message_BlockRequest
	//	*Message_NoBlockResponse
	//	*Message_BlockResponse
	//	*Message_StatusRequest
	//	*Message_StatusResponse
	Sum                  isMessage_Sum `protobuf_oneof:"sum"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetBlockRequest

func (m *Message) GetBlockRequest() *BlockRequest

func (*Message) GetBlockResponse

func (m *Message) GetBlockResponse() *BlockResponse

func (*Message) GetNoBlockResponse

func (m *Message) GetNoBlockResponse() *NoBlockResponse

func (*Message) GetStatusRequest

func (m *Message) GetStatusRequest() *StatusRequest

func (*Message) GetStatusResponse

func (m *Message) GetStatusResponse() *StatusResponse

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_BlockRequest

type Message_BlockRequest struct {
	BlockRequest *BlockRequest `protobuf:"bytes,1,opt,name=block_request,json=blockRequest,proto3,oneof" json:"block_request,omitempty"`
}

type Message_BlockResponse

type Message_BlockResponse struct {
	BlockResponse *BlockResponse `protobuf:"bytes,3,opt,name=block_response,json=blockResponse,proto3,oneof" json:"block_response,omitempty"`
}

type Message_NoBlockResponse

type Message_NoBlockResponse struct {
	NoBlockResponse *NoBlockResponse `protobuf:"bytes,2,opt,name=no_block_response,json=noBlockResponse,proto3,oneof" json:"no_block_response,omitempty"`
}

type Message_StatusRequest

type Message_StatusRequest struct {
	StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest,proto3,oneof" json:"status_request,omitempty"`
}

type Message_StatusResponse

type Message_StatusResponse struct {
	StatusResponse *StatusResponse `protobuf:"bytes,5,opt,name=status_response,json=statusResponse,proto3,oneof" json:"status_response,omitempty"`
}

type NoBlockResponse

type NoBlockResponse struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

NoBlockResponse informs the node that the peer does not have block at the requested height

func (*NoBlockResponse) Descriptor

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

func (*NoBlockResponse) GetHeight

func (m *NoBlockResponse) GetHeight() int64

func (*NoBlockResponse) ProtoMessage

func (*NoBlockResponse) ProtoMessage()

func (*NoBlockResponse) Reset

func (m *NoBlockResponse) Reset()

func (*NoBlockResponse) String

func (m *NoBlockResponse) String() string

func (*NoBlockResponse) XXX_DiscardUnknown

func (m *NoBlockResponse) XXX_DiscardUnknown()

func (*NoBlockResponse) XXX_Marshal

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

func (*NoBlockResponse) XXX_Merge

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

func (*NoBlockResponse) XXX_Size

func (m *NoBlockResponse) XXX_Size() int

func (*NoBlockResponse) XXX_Unmarshal

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

type StatusRequest

type StatusRequest struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Base                 int64    `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StatusRequest requests the status of a node (Height & Base)

func (*StatusRequest) Descriptor

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

func (*StatusRequest) GetBase

func (m *StatusRequest) GetBase() int64

func (*StatusRequest) GetHeight

func (m *StatusRequest) GetHeight() int64

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

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

func (*StatusRequest) XXX_Merge

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

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

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

type StatusResponse

type StatusResponse struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Base                 int64    `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

StatusResponse is a peer response to infrom their status

func (*StatusResponse) Descriptor

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

func (*StatusResponse) GetBase

func (m *StatusResponse) GetBase() int64

func (*StatusResponse) GetHeight

func (m *StatusResponse) GetHeight() int64

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

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

func (*StatusResponse) XXX_Merge

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

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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