types

package
v0.3.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVoteExtension        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVoteExtension          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVoteExtension = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type InjectedTx

type InjectedTx struct {
	// parts is a map of tx parts (sub-txs), keyed by unique ID.
	Parts map[uint32][]byte `` /* 152-byte string literal not displayed */
}

InjectedTx defines the pseudo-tx used to inject previous-block vote extensions into the current block proposal.

func (*InjectedTx) Descriptor

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

func (*InjectedTx) GetParts

func (m *InjectedTx) GetParts() map[uint32][]byte

func (*InjectedTx) Marshal

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

func (*InjectedTx) MarshalTo

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

func (*InjectedTx) MarshalToSizedBuffer

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

func (*InjectedTx) ProtoMessage

func (*InjectedTx) ProtoMessage()

func (*InjectedTx) Reset

func (m *InjectedTx) Reset()

func (*InjectedTx) Size

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

func (*InjectedTx) String

func (m *InjectedTx) String() string

func (*InjectedTx) Unmarshal

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

func (*InjectedTx) XXX_DiscardUnknown

func (m *InjectedTx) XXX_DiscardUnknown()

func (*InjectedTx) XXX_Marshal

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

func (*InjectedTx) XXX_Merge

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

func (*InjectedTx) XXX_Size

func (m *InjectedTx) XXX_Size() int

func (*InjectedTx) XXX_Unmarshal

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

type VoteExtension

type VoteExtension struct {
	// height is the height of the block that the vote extension is for.
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// parts is a map of vote extension parts, keyed by unique ID.
	Parts map[uint32][]byte `` /* 152-byte string literal not displayed */
}

VoteExtension defines the vote extension structure for the Mezo application.

func (*VoteExtension) Descriptor

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

func (*VoteExtension) GetHeight

func (m *VoteExtension) GetHeight() int64

func (*VoteExtension) GetParts

func (m *VoteExtension) GetParts() map[uint32][]byte

func (*VoteExtension) Marshal

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

func (*VoteExtension) MarshalTo

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

func (*VoteExtension) MarshalToSizedBuffer

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

func (*VoteExtension) ProtoMessage

func (*VoteExtension) ProtoMessage()

func (*VoteExtension) Reset

func (m *VoteExtension) Reset()

func (*VoteExtension) Size

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

func (*VoteExtension) String

func (m *VoteExtension) String() string

func (*VoteExtension) Unmarshal

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

func (*VoteExtension) XXX_DiscardUnknown

func (m *VoteExtension) XXX_DiscardUnknown()

func (*VoteExtension) XXX_Marshal

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

func (*VoteExtension) XXX_Merge

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

func (*VoteExtension) XXX_Size

func (m *VoteExtension) XXX_Size() int

func (*VoteExtension) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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