v1beta2

package
v1.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type BlockParams

type BlockParams struct {
	// Max block size, in bytes.
	// Note: must be greater than 0
	MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// Max gas per block.
	// Note: must be greater or equal to -1
	MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`
}

BlockParams contains limits on the block size.

func (*BlockParams) Descriptor

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

func (*BlockParams) Equal

func (this *BlockParams) Equal(that interface{}) bool

func (*BlockParams) GetMaxBytes

func (m *BlockParams) GetMaxBytes() int64

func (*BlockParams) GetMaxGas

func (m *BlockParams) GetMaxGas() int64

func (*BlockParams) Marshal

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

func (*BlockParams) MarshalTo

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

func (*BlockParams) MarshalToSizedBuffer

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

func (*BlockParams) ProtoMessage

func (*BlockParams) ProtoMessage()

func (*BlockParams) Reset

func (m *BlockParams) Reset()

func (*BlockParams) Size

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

func (*BlockParams) String

func (m *BlockParams) String() string

func (*BlockParams) Unmarshal

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

func (*BlockParams) XXX_DiscardUnknown

func (m *BlockParams) XXX_DiscardUnknown()

func (*BlockParams) XXX_Marshal

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

func (*BlockParams) XXX_Merge

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

func (*BlockParams) XXX_Size

func (m *BlockParams) XXX_Size() int

func (*BlockParams) XXX_Unmarshal

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

type ConsensusParams

type ConsensusParams struct {
	Block     *BlockParams             `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Evidence  *v1beta1.EvidenceParams  `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
	Validator *v1beta1.ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
	Version   *v1beta1.VersionParams   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
}

ConsensusParams contains consensus critical parameters that determine the validity of blocks.

func (*ConsensusParams) Descriptor

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

func (*ConsensusParams) Equal

func (this *ConsensusParams) Equal(that interface{}) bool

func (*ConsensusParams) GetBlock

func (m *ConsensusParams) GetBlock() *BlockParams

func (*ConsensusParams) GetEvidence

func (m *ConsensusParams) GetEvidence() *v1beta1.EvidenceParams

func (*ConsensusParams) GetValidator

func (m *ConsensusParams) GetValidator() *v1beta1.ValidatorParams

func (*ConsensusParams) GetVersion

func (m *ConsensusParams) GetVersion() *v1beta1.VersionParams

func (*ConsensusParams) Marshal

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

func (*ConsensusParams) MarshalTo

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

func (*ConsensusParams) MarshalToSizedBuffer

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

func (*ConsensusParams) ProtoMessage

func (*ConsensusParams) ProtoMessage()

func (*ConsensusParams) Reset

func (m *ConsensusParams) Reset()

func (*ConsensusParams) Size

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

func (*ConsensusParams) String

func (m *ConsensusParams) String() string

func (*ConsensusParams) Unmarshal

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

func (*ConsensusParams) XXX_DiscardUnknown

func (m *ConsensusParams) XXX_DiscardUnknown()

func (*ConsensusParams) XXX_Marshal

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

func (*ConsensusParams) XXX_Merge

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

func (*ConsensusParams) XXX_Size

func (m *ConsensusParams) XXX_Size() int

func (*ConsensusParams) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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