statesync

package
v0.14.0-dev.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ChunkRequest

type ChunkRequest struct {
	Height  uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	ChunkId []byte `protobuf:"bytes,3,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
}

func (*ChunkRequest) Descriptor

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

func (*ChunkRequest) GetChunkId

func (m *ChunkRequest) GetChunkId() []byte

func (*ChunkRequest) GetHeight

func (m *ChunkRequest) GetHeight() uint64

func (*ChunkRequest) GetVersion

func (m *ChunkRequest) GetVersion() uint32

func (*ChunkRequest) Marshal

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

func (*ChunkRequest) MarshalTo

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

func (*ChunkRequest) MarshalToSizedBuffer

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

func (*ChunkRequest) ProtoMessage

func (*ChunkRequest) ProtoMessage()

func (*ChunkRequest) Reset

func (m *ChunkRequest) Reset()

func (*ChunkRequest) Size

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

func (*ChunkRequest) String

func (m *ChunkRequest) String() string

func (*ChunkRequest) Unmarshal

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

func (*ChunkRequest) XXX_DiscardUnknown

func (m *ChunkRequest) XXX_DiscardUnknown()

func (*ChunkRequest) XXX_Marshal

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

func (*ChunkRequest) XXX_Merge

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

func (*ChunkRequest) XXX_Size

func (m *ChunkRequest) XXX_Size() int

func (*ChunkRequest) XXX_Unmarshal

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

type ChunkResponse

type ChunkResponse struct {
	Height  uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	ChunkId []byte `protobuf:"bytes,3,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
	Chunk   []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
	Missing bool   `protobuf:"varint,5,opt,name=missing,proto3" json:"missing,omitempty"`
}

func (*ChunkResponse) Descriptor

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

func (*ChunkResponse) GetChunk

func (m *ChunkResponse) GetChunk() []byte

func (*ChunkResponse) GetChunkId

func (m *ChunkResponse) GetChunkId() []byte

func (*ChunkResponse) GetHeight

func (m *ChunkResponse) GetHeight() uint64

func (*ChunkResponse) GetMissing

func (m *ChunkResponse) GetMissing() bool

func (*ChunkResponse) GetVersion

func (m *ChunkResponse) GetVersion() uint32

func (*ChunkResponse) Marshal

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

func (*ChunkResponse) MarshalTo

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

func (*ChunkResponse) MarshalToSizedBuffer

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

func (*ChunkResponse) ProtoMessage

func (*ChunkResponse) ProtoMessage()

func (*ChunkResponse) Reset

func (m *ChunkResponse) Reset()

func (*ChunkResponse) Size

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

func (*ChunkResponse) String

func (m *ChunkResponse) String() string

func (*ChunkResponse) Unmarshal

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

func (*ChunkResponse) XXX_DiscardUnknown

func (m *ChunkResponse) XXX_DiscardUnknown()

func (*ChunkResponse) XXX_Marshal

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

func (*ChunkResponse) XXX_Merge

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

func (*ChunkResponse) XXX_Size

func (m *ChunkResponse) XXX_Size() int

func (*ChunkResponse) XXX_Unmarshal

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

type LightBlockRequest

type LightBlockRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

func (*LightBlockRequest) Descriptor

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

func (*LightBlockRequest) GetHeight

func (m *LightBlockRequest) GetHeight() uint64

func (*LightBlockRequest) Marshal

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

func (*LightBlockRequest) MarshalTo

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

func (*LightBlockRequest) MarshalToSizedBuffer

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

func (*LightBlockRequest) ProtoMessage

func (*LightBlockRequest) ProtoMessage()

func (*LightBlockRequest) Reset

func (m *LightBlockRequest) Reset()

func (*LightBlockRequest) Size

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

func (*LightBlockRequest) String

func (m *LightBlockRequest) String() string

func (*LightBlockRequest) Unmarshal

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

func (*LightBlockRequest) XXX_DiscardUnknown

func (m *LightBlockRequest) XXX_DiscardUnknown()

func (*LightBlockRequest) XXX_Marshal

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

func (*LightBlockRequest) XXX_Merge

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

func (*LightBlockRequest) XXX_Size

func (m *LightBlockRequest) XXX_Size() int

func (*LightBlockRequest) XXX_Unmarshal

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

type LightBlockResponse

type LightBlockResponse struct {
	LightBlock *types.LightBlock `protobuf:"bytes,1,opt,name=light_block,json=lightBlock,proto3" json:"light_block,omitempty"`
}

func (*LightBlockResponse) Descriptor

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

func (*LightBlockResponse) GetLightBlock

func (m *LightBlockResponse) GetLightBlock() *types.LightBlock

func (*LightBlockResponse) Marshal

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

func (*LightBlockResponse) MarshalTo

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

func (*LightBlockResponse) MarshalToSizedBuffer

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

func (*LightBlockResponse) ProtoMessage

func (*LightBlockResponse) ProtoMessage()

func (*LightBlockResponse) Reset

func (m *LightBlockResponse) Reset()

func (*LightBlockResponse) Size

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

func (*LightBlockResponse) String

func (m *LightBlockResponse) String() string

func (*LightBlockResponse) Unmarshal

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

func (*LightBlockResponse) XXX_DiscardUnknown

func (m *LightBlockResponse) XXX_DiscardUnknown()

func (*LightBlockResponse) XXX_Marshal

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

func (*LightBlockResponse) XXX_Merge

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

func (*LightBlockResponse) XXX_Size

func (m *LightBlockResponse) XXX_Size() int

func (*LightBlockResponse) XXX_Unmarshal

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

type ParamsRequest

type ParamsRequest struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

func (*ParamsRequest) Descriptor

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

func (*ParamsRequest) GetHeight

func (m *ParamsRequest) GetHeight() uint64

func (*ParamsRequest) Marshal

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

func (*ParamsRequest) MarshalTo

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

func (*ParamsRequest) MarshalToSizedBuffer

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

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) Reset

func (m *ParamsRequest) Reset()

func (*ParamsRequest) Size

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

func (*ParamsRequest) String

func (m *ParamsRequest) String() string

func (*ParamsRequest) Unmarshal

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

func (*ParamsRequest) XXX_DiscardUnknown

func (m *ParamsRequest) XXX_DiscardUnknown()

func (*ParamsRequest) XXX_Marshal

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

func (*ParamsRequest) XXX_Merge

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

func (*ParamsRequest) XXX_Size

func (m *ParamsRequest) XXX_Size() int

func (*ParamsRequest) XXX_Unmarshal

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

type ParamsResponse

type ParamsResponse struct {
	Height          uint64                `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	ConsensusParams types.ConsensusParams `protobuf:"bytes,2,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params"`
}

func (*ParamsResponse) Descriptor

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

func (*ParamsResponse) GetConsensusParams

func (m *ParamsResponse) GetConsensusParams() types.ConsensusParams

func (*ParamsResponse) GetHeight

func (m *ParamsResponse) GetHeight() uint64

func (*ParamsResponse) Marshal

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

func (*ParamsResponse) MarshalTo

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

func (*ParamsResponse) MarshalToSizedBuffer

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

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) Reset

func (m *ParamsResponse) Reset()

func (*ParamsResponse) Size

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

func (*ParamsResponse) String

func (m *ParamsResponse) String() string

func (*ParamsResponse) Unmarshal

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

func (*ParamsResponse) XXX_DiscardUnknown

func (m *ParamsResponse) XXX_DiscardUnknown()

func (*ParamsResponse) XXX_Marshal

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

func (*ParamsResponse) XXX_Merge

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

func (*ParamsResponse) XXX_Size

func (m *ParamsResponse) XXX_Size() int

func (*ParamsResponse) XXX_Unmarshal

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

type SnapshotsRequest

type SnapshotsRequest struct {
}

func (*SnapshotsRequest) Descriptor

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

func (*SnapshotsRequest) Marshal

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

func (*SnapshotsRequest) MarshalTo

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

func (*SnapshotsRequest) MarshalToSizedBuffer

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

func (*SnapshotsRequest) ProtoMessage

func (*SnapshotsRequest) ProtoMessage()

func (*SnapshotsRequest) Reset

func (m *SnapshotsRequest) Reset()

func (*SnapshotsRequest) Size

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

func (*SnapshotsRequest) String

func (m *SnapshotsRequest) String() string

func (*SnapshotsRequest) Unmarshal

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

func (*SnapshotsRequest) XXX_DiscardUnknown

func (m *SnapshotsRequest) XXX_DiscardUnknown()

func (*SnapshotsRequest) XXX_Marshal

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

func (*SnapshotsRequest) XXX_Merge

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

func (*SnapshotsRequest) XXX_Size

func (m *SnapshotsRequest) XXX_Size() int

func (*SnapshotsRequest) XXX_Unmarshal

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

type SnapshotsResponse

type SnapshotsResponse struct {
	Height   uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Version  uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Hash     []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*SnapshotsResponse) Descriptor

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

func (*SnapshotsResponse) GetHash

func (m *SnapshotsResponse) GetHash() []byte

func (*SnapshotsResponse) GetHeight

func (m *SnapshotsResponse) GetHeight() uint64

func (*SnapshotsResponse) GetMetadata

func (m *SnapshotsResponse) GetMetadata() []byte

func (*SnapshotsResponse) GetVersion

func (m *SnapshotsResponse) GetVersion() uint32

func (*SnapshotsResponse) Marshal

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

func (*SnapshotsResponse) MarshalTo

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

func (*SnapshotsResponse) MarshalToSizedBuffer

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

func (*SnapshotsResponse) ProtoMessage

func (*SnapshotsResponse) ProtoMessage()

func (*SnapshotsResponse) Reset

func (m *SnapshotsResponse) Reset()

func (*SnapshotsResponse) Size

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

func (*SnapshotsResponse) String

func (m *SnapshotsResponse) String() string

func (*SnapshotsResponse) Unmarshal

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

func (*SnapshotsResponse) XXX_DiscardUnknown

func (m *SnapshotsResponse) XXX_DiscardUnknown()

func (*SnapshotsResponse) XXX_Marshal

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

func (*SnapshotsResponse) XXX_Merge

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

func (*SnapshotsResponse) XXX_Size

func (m *SnapshotsResponse) XXX_Size() int

func (*SnapshotsResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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