Documentation
¶
Index ¶
- type EpochQuery
- type Params
- type Snapshot
- func (u *Snapshot) Commit() (flow.StateCommitment, error)
- func (u *Snapshot) Descendants() ([]flow.Identifier, error)
- func (u *Snapshot) EpochPhase() (flow.EpochPhase, error)
- func (u *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)
- func (u *Snapshot) Epochs() protocol.EpochQuery
- func (u *Snapshot) Head() (*flow.Header, error)
- func (u *Snapshot) Identities(_ flow.IdentityFilter[flow.Identity]) (flow.IdentityList, error)
- func (u *Snapshot) Identity(_ flow.Identifier) (*flow.Identity, error)
- func (u *Snapshot) Params() protocol.GlobalParams
- func (u *Snapshot) ProtocolState() (protocol.KVStoreReader, error)
- func (u *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)
- func (u *Snapshot) RandomSource() ([]byte, error)
- func (u *Snapshot) SealedResult() (*flow.ExecutionResult, *flow.Seal, error)
- func (u *Snapshot) SealingSegment() (*flow.SealingSegment, error)
- func (u *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)
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) SporkID ¶ added in v0.23.2
func (p Params) SporkID() flow.Identifier
func (Params) SporkRootBlockHeight ¶ added in v0.29.6
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 ¶
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
NewSnapshotf is NewSnapshot with ergonomic error formatting.
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) Identities ¶
func (u *Snapshot) Identities(_ flow.IdentityFilter[flow.Identity]) (flow.IdentityList, 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 (*Snapshot) SealedResult ¶
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)
Click to show internal directories.
Click to hide internal directories.