consensus_types

package
v7.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilObjectWrapped is returned in a constructor when the underlying object is nil.
	ErrNilObjectWrapped = errors.New("attempted to wrap nil object")
	// ErrUnsupportedField is returned when a getter/setter access is not supported.
	ErrUnsupportedField = errors.New("unsupported getter")
)

Functions

func ErrNotSupported

func ErrNotSupported(funcName string, ver int) error

ErrNotSupported constructs a message informing about an unsupported field access.

Types

type IndexedPayloadAttestation added in v7.1.3

type IndexedPayloadAttestation struct {
	AttestingIndices []primitives.ValidatorIndex
	Data             *eth.PayloadAttestationData
	Signature        []byte
}

func (*IndexedPayloadAttestation) GetAttestingIndices added in v7.1.3

func (x *IndexedPayloadAttestation) GetAttestingIndices() []primitives.ValidatorIndex

GetAttestingIndices returns the attesting indices or nil when the receiver is nil.

func (*IndexedPayloadAttestation) GetData added in v7.1.3

GetData returns the attestation data or nil when the receiver is nil.

func (*IndexedPayloadAttestation) GetSignature added in v7.1.3

func (x *IndexedPayloadAttestation) GetSignature() []byte

GetSignature returns the signature bytes or nil when the receiver is nil.

type ThreadSafeEnumerator

type ThreadSafeEnumerator struct {
	// contains filtered or unexported fields
}

ThreadSafeEnumerator is a thread-safe counter of all objects created since the node's start.

func (*ThreadSafeEnumerator) Inc

func (c *ThreadSafeEnumerator) Inc() uint64

Inc increments the enumerator and returns the new object count.

Directories

Path Synopsis
Code generated by hack/gen-logs.sh; DO NOT EDIT.
Code generated by hack/gen-logs.sh; DO NOT EDIT.
package mock lint:nopanic -- This is test / mock code, allowed to panic.
package mock lint:nopanic -- This is test / mock code, allowed to panic.

Jump to

Keyboard shortcuts

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