invalid

package
v0.39.3-unsafe-cdp.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochQuery added in v0.39.2

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

EpochQuery represents the epoch information for an invalid state snapshot query.

func (EpochQuery) Current added in v0.39.2

func (e EpochQuery) Current() (protocol.CommittedEpoch, error)

func (EpochQuery) NextCommitted added in v0.39.2

func (e EpochQuery) NextCommitted() (protocol.CommittedEpoch, error)

func (EpochQuery) NextUnsafe added in v0.39.2

func (e EpochQuery) NextUnsafe() (protocol.TentativeEpoch, error)

func (EpochQuery) Previous added in v0.39.2

func (e EpochQuery) Previous() (protocol.CommittedEpoch, error)

type Params added in v0.23.2

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

Params represents parameters for an invalid state snapshot query.

func (Params) ChainID added in v0.23.2

func (p Params) ChainID() flow.ChainID

func (Params) SporkID added in v0.23.2

func (p Params) SporkID() flow.Identifier

func (Params) SporkRootBlockHeight added in v0.29.6

func (p Params) SporkRootBlockHeight() uint64

type Snapshot

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

Snapshot represents a snapshot that does not exist or could not be queried.

func NewSnapshot

func NewSnapshot(err error) *Snapshot

NewSnapshot returns a new invalid snapshot, containing an error describing why the snapshot could not be retrieved. The following are expected errors when constructing an invalid Snapshot:

  • state.ErrUnknownSnapshotReference if the reference point for the snapshot (height or block ID) does not resolve to a queriable block in the state.
  • generic error in case of unexpected critical internal corruption or bugs

func NewSnapshotf added in v0.28.0

func NewSnapshotf(msg string, args ...interface{}) *Snapshot

NewSnapshotf is NewSnapshot with ergonomic error formatting.

func (*Snapshot) Commit

func (u *Snapshot) Commit() (flow.StateCommitment, error)

func (*Snapshot) Descendants added in v0.17.6

func (u *Snapshot) Descendants() ([]flow.Identifier, error)

func (*Snapshot) EpochPhase added in v0.37.1

func (u *Snapshot) EpochPhase() (flow.EpochPhase, error)

func (*Snapshot) EpochProtocolState added in v0.33.30

func (u *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)

func (*Snapshot) Epochs

func (u *Snapshot) Epochs() protocol.EpochQuery

func (*Snapshot) Head

func (u *Snapshot) Head() (*flow.Header, error)

func (*Snapshot) Identities

func (*Snapshot) Identity

func (u *Snapshot) Identity(_ flow.Identifier) (*flow.Identity, error)

func (*Snapshot) Params added in v0.23.2

func (u *Snapshot) Params() protocol.GlobalParams

func (*Snapshot) ProtocolState added in v0.33.30

func (u *Snapshot) ProtocolState() (protocol.KVStoreReader, error)

func (*Snapshot) QuorumCertificate

func (u *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)

func (*Snapshot) RandomSource added in v0.25.0

func (u *Snapshot) RandomSource() ([]byte, error)

func (*Snapshot) SealedResult

func (u *Snapshot) SealedResult() (*flow.ExecutionResult, *flow.Seal, error)

func (*Snapshot) SealingSegment

func (u *Snapshot) SealingSegment() (*flow.SealingSegment, error)

func (*Snapshot) VersionBeacon added in v0.31.0

func (u *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)

Jump to

Keyboard shortcuts

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