invalid

package
v0.19.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epoch

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

Epoch represents an epoch that does not exist or could not be retrieved.

func NewEpoch

func NewEpoch(err error) *Epoch

func (*Epoch) Cluster

func (u *Epoch) Cluster(uint) (protocol.Cluster, error)

func (*Epoch) Clustering

func (u *Epoch) Clustering() (flow.ClusterList, error)

func (*Epoch) Counter

func (u *Epoch) Counter() (uint64, error)

func (*Epoch) DKG

func (u *Epoch) DKG() (protocol.DKG, error)

func (*Epoch) FinalView

func (u *Epoch) FinalView() (uint64, error)

func (*Epoch) FirstView

func (u *Epoch) FirstView() (uint64, error)

func (*Epoch) InitialIdentities

func (u *Epoch) InitialIdentities() (flow.IdentityList, error)

func (*Epoch) RandomSource

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

func (*Epoch) Seed

func (u *Epoch) Seed(...uint32) ([]byte, error)

type Epochs

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

Epochs is an epoch query for an invalid snapshot.

func (*Epochs) Current

func (u *Epochs) Current() protocol.Epoch

func (*Epochs) Next

func (u *Epochs) Next() protocol.Epoch

func (*Epochs) Previous

func (u *Epochs) Previous() protocol.Epoch

type Snapshot

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

Snapshot represents a snapshot referencing an invalid block, or for which an error occurred while resolving the reference block.

func NewSnapshot

func NewSnapshot(err error) *Snapshot

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) Epochs

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

func (*Snapshot) Head

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

func (*Snapshot) Identities

func (u *Snapshot) Identities(_ flow.IdentityFilter) (flow.IdentityList, error)

func (*Snapshot) Identity

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

func (*Snapshot) Phase

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

func (*Snapshot) QuorumCertificate

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

func (*Snapshot) SealedResult

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

func (*Snapshot) SealingSegment

func (u *Snapshot) SealingSegment() ([]*flow.Block, error)

func (*Snapshot) Seed

func (u *Snapshot) Seed(_ ...uint32) ([]byte, error)

func (*Snapshot) ValidDescendants added in v0.17.6

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

Jump to

Keyboard shortcuts

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