Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 typical errors resulting in the construction of 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 state inconsistencies or bugs
func NewSnapshotf ¶
NewSnapshotf is NewSnapshot with ergonomic error formatting.
func (*Snapshot) Collection ¶
func (u *Snapshot) Collection() (*flow.Collection, error)
Click to show internal directories.
Click to hide internal directories.