common

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Iteration_Direction_name = map[int32]string{
		0: "Forward",
		1: "Backward",
	}
	Iteration_Direction_value = map[string]int32{
		"Forward":  0,
		"Backward": 1,
	}
)

Enum value maps for Iteration_Direction.

View Source
var File_p2p_proto_sync_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Iteration

type Iteration struct {

	// Types that are valid to be assigned to Start:
	//
	//	*Iteration_BlockNumber
	//	*Iteration_Header
	Start     isIteration_Start   `protobuf_oneof:"start"`
	Direction Iteration_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=Iteration_Direction" json:"direction,omitempty"`
	Limit     uint64              `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	Step      uint64              `protobuf:"varint,5,opt,name=step,proto3" json:"step,omitempty"` // to allow interleaving from several nodes
	// contains filtered or unexported fields
}

func (*Iteration) Descriptor deprecated

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

Deprecated: Use Iteration.ProtoReflect.Descriptor instead.

func (*Iteration) GetBlockNumber

func (x *Iteration) GetBlockNumber() uint64

func (*Iteration) GetDirection

func (x *Iteration) GetDirection() Iteration_Direction

func (*Iteration) GetHeader

func (x *Iteration) GetHeader() *common.Hash

func (*Iteration) GetLimit

func (x *Iteration) GetLimit() uint64

func (*Iteration) GetStart

func (x *Iteration) GetStart() isIteration_Start

func (*Iteration) GetStep

func (x *Iteration) GetStep() uint64

func (*Iteration) ProtoMessage

func (*Iteration) ProtoMessage()

func (*Iteration) ProtoReflect

func (x *Iteration) ProtoReflect() protoreflect.Message

func (*Iteration) Reset

func (x *Iteration) Reset()

func (*Iteration) String

func (x *Iteration) String() string

type Iteration_BlockNumber

type Iteration_BlockNumber struct {
	BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3,oneof"`
}

type Iteration_Direction

type Iteration_Direction int32
const (
	Iteration_Forward  Iteration_Direction = 0
	Iteration_Backward Iteration_Direction = 1
)

func (Iteration_Direction) Descriptor

func (Iteration_Direction) Enum

func (Iteration_Direction) EnumDescriptor deprecated

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

Deprecated: Use Iteration_Direction.Descriptor instead.

func (Iteration_Direction) Number

func (Iteration_Direction) String

func (x Iteration_Direction) String() string

func (Iteration_Direction) Type

type Iteration_Header

type Iteration_Header struct {
	Header *common.Hash `protobuf:"bytes,2,opt,name=header,proto3,oneof"`
}

type StateDiffCommitment

type StateDiffCommitment struct {
	StateDiffLength uint64       `protobuf:"varint,1,opt,name=state_diff_length,json=stateDiffLength,proto3" json:"state_diff_length,omitempty"`
	Root            *common.Hash `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	// contains filtered or unexported fields
}

func (*StateDiffCommitment) Descriptor deprecated

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

Deprecated: Use StateDiffCommitment.ProtoReflect.Descriptor instead.

func (*StateDiffCommitment) GetRoot

func (x *StateDiffCommitment) GetRoot() *common.Hash

func (*StateDiffCommitment) GetStateDiffLength

func (x *StateDiffCommitment) GetStateDiffLength() uint64

func (*StateDiffCommitment) ProtoMessage

func (*StateDiffCommitment) ProtoMessage()

func (*StateDiffCommitment) ProtoReflect

func (x *StateDiffCommitment) ProtoReflect() protoreflect.Message

func (*StateDiffCommitment) Reset

func (x *StateDiffCommitment) Reset()

func (*StateDiffCommitment) String

func (x *StateDiffCommitment) String() string

Jump to

Keyboard shortcuts

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