Versions in this module Expand all Collapse all v0 v0.1.3 Jan 16, 2024 v0.1.2 Dec 7, 2023 v0.1.1 Nov 3, 2023 v0.1.0 Oct 17, 2023 Changes in this version + var File_sync_proto protoreflect.FileDescriptor + var SyncType_name = map[int32]string + var SyncType_value = map[string]int32 + type SyncBlockRequest struct + Number []*types_pb.H256 + func (*SyncBlockRequest) Descriptor() ([]byte, []int) + func (*SyncBlockRequest) ProtoMessage() + func (x *SyncBlockRequest) GetNumber() []*types_pb.H256 + func (x *SyncBlockRequest) ProtoReflect() protoreflect.Message + func (x *SyncBlockRequest) Reset() + func (x *SyncBlockRequest) String() string + type SyncBlockResponse struct + Blocks []*types_pb.Block + func (*SyncBlockResponse) Descriptor() ([]byte, []int) + func (*SyncBlockResponse) ProtoMessage() + func (x *SyncBlockResponse) GetBlocks() []*types_pb.Block + func (x *SyncBlockResponse) ProtoReflect() protoreflect.Message + func (x *SyncBlockResponse) Reset() + func (x *SyncBlockResponse) String() string + type SyncHeaderRequest struct + Amount *types_pb.H256 + Number *types_pb.H256 + func (*SyncHeaderRequest) Descriptor() ([]byte, []int) + func (*SyncHeaderRequest) ProtoMessage() + func (x *SyncHeaderRequest) GetAmount() *types_pb.H256 + func (x *SyncHeaderRequest) GetNumber() *types_pb.H256 + func (x *SyncHeaderRequest) ProtoReflect() protoreflect.Message + func (x *SyncHeaderRequest) Reset() + func (x *SyncHeaderRequest) String() string + type SyncHeaderResponse struct + Headers []*types_pb.Header + func (*SyncHeaderResponse) Descriptor() ([]byte, []int) + func (*SyncHeaderResponse) ProtoMessage() + func (x *SyncHeaderResponse) GetHeaders() []*types_pb.Header + func (x *SyncHeaderResponse) ProtoReflect() protoreflect.Message + func (x *SyncHeaderResponse) Reset() + func (x *SyncHeaderResponse) String() string + type SyncPeerInfoBroadcast struct + Difficulty *types_pb.H256 + Number *types_pb.H256 + func (*SyncPeerInfoBroadcast) Descriptor() ([]byte, []int) + func (*SyncPeerInfoBroadcast) ProtoMessage() + func (x *SyncPeerInfoBroadcast) GetDifficulty() *types_pb.H256 + func (x *SyncPeerInfoBroadcast) GetNumber() *types_pb.H256 + func (x *SyncPeerInfoBroadcast) ProtoReflect() protoreflect.Message + func (x *SyncPeerInfoBroadcast) Reset() + func (x *SyncPeerInfoBroadcast) String() string + type SyncProtocol struct + func (*SyncProtocol) Descriptor() ([]byte, []int) + func (*SyncProtocol) ProtoMessage() + func (x *SyncProtocol) ProtoReflect() protoreflect.Message + func (x *SyncProtocol) Reset() + func (x *SyncProtocol) String() string + type SyncTask struct + Id uint64 + Ok bool + Payload isSyncTask_Payload + SyncType SyncType + func (*SyncTask) Descriptor() ([]byte, []int) + func (*SyncTask) ProtoMessage() + func (m *SyncTask) GetPayload() isSyncTask_Payload + func (x *SyncTask) GetId() uint64 + func (x *SyncTask) GetOk() bool + func (x *SyncTask) GetSyncBlockRequest() *SyncBlockRequest + func (x *SyncTask) GetSyncBlockResponse() *SyncBlockResponse + func (x *SyncTask) GetSyncHeaderRequest() *SyncHeaderRequest + func (x *SyncTask) GetSyncHeaderResponse() *SyncHeaderResponse + func (x *SyncTask) GetSyncPeerInfoBroadcast() *SyncPeerInfoBroadcast + func (x *SyncTask) GetSyncTransactionRequest() *SyncTransactionRequest + func (x *SyncTask) GetSyncTransactionResponse() *SyncTransactionResponse + func (x *SyncTask) GetSyncType() SyncType + func (x *SyncTask) ProtoReflect() protoreflect.Message + func (x *SyncTask) Reset() + func (x *SyncTask) String() string + type SyncTask_SyncBlockRequest struct + SyncBlockRequest *SyncBlockRequest + type SyncTask_SyncBlockResponse struct + SyncBlockResponse *SyncBlockResponse + type SyncTask_SyncHeaderRequest struct + SyncHeaderRequest *SyncHeaderRequest + type SyncTask_SyncHeaderResponse struct + SyncHeaderResponse *SyncHeaderResponse + type SyncTask_SyncPeerInfoBroadcast struct + SyncPeerInfoBroadcast *SyncPeerInfoBroadcast + type SyncTask_SyncTransactionRequest struct + SyncTransactionRequest *SyncTransactionRequest + type SyncTask_SyncTransactionResponse struct + SyncTransactionResponse *SyncTransactionResponse + type SyncTransactionRequest struct + Bloom []byte + func (*SyncTransactionRequest) Descriptor() ([]byte, []int) + func (*SyncTransactionRequest) ProtoMessage() + func (x *SyncTransactionRequest) GetBloom() []byte + func (x *SyncTransactionRequest) ProtoReflect() protoreflect.Message + func (x *SyncTransactionRequest) Reset() + func (x *SyncTransactionRequest) String() string + type SyncTransactionResponse struct + Transactions []*types_pb.Transaction + func (*SyncTransactionResponse) Descriptor() ([]byte, []int) + func (*SyncTransactionResponse) ProtoMessage() + func (x *SyncTransactionResponse) GetTransactions() []*types_pb.Transaction + func (x *SyncTransactionResponse) ProtoReflect() protoreflect.Message + func (x *SyncTransactionResponse) Reset() + func (x *SyncTransactionResponse) String() string + type SyncType int32 + const SyncType_BodyReq + const SyncType_BodyRes + const SyncType_FINDReq + const SyncType_FindRes + const SyncType_HeaderReq + const SyncType_HeaderRes + const SyncType_PeerInfoBroadcast + const SyncType_StateReq + const SyncType_StateRes + const SyncType_TransactionReq + const SyncType_TransactionRes + func (SyncType) Descriptor() protoreflect.EnumDescriptor + func (SyncType) EnumDescriptor() ([]byte, []int) + func (SyncType) Type() protoreflect.EnumType + func (x SyncType) Enum() *SyncType + func (x SyncType) Number() protoreflect.EnumNumber + func (x SyncType) String() string + type Value struct + Hash string + Height uint64 + func (*Value) Descriptor() ([]byte, []int) + func (*Value) ProtoMessage() + func (x *Value) GetHash() string + func (x *Value) GetHeight() uint64 + func (x *Value) ProtoReflect() protoreflect.Message + func (x *Value) Reset() + func (x *Value) String() string