systemcollection

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version0 access.Version = 0
	Version1 access.Version = 1
)

Variables

Functions

func Default

Default returns the default versioned system collection builder for the provided chain. This is the set of all available version builders for the chain.

Types

type Versioned

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

Versioned is a collection of all versions of the system collections.

This is useful when we want to obtain a system collection by ID but we don't have the block height, so we check all versions of system collection if it matches by ID.

func NewVersioned

func NewVersioned(chain flow.Chain, versioned *access.Versioned[access.SystemCollectionBuilder]) (*Versioned, error)

func (*Versioned) ByHeight

func (s *Versioned) ByHeight(height uint64) access.SystemCollectionBuilder

ByHeight returns the system collection builder for the given height.

func (*Versioned) SearchAll

func (s *Versioned) SearchAll(id flow.Identifier) (*flow.TransactionBody, bool)

SearchAll searches for a transaction by ID in all versions of the system collections. Returns true if the transaction was found in any of the versions, false otherwise.

This is useful when looking up transactions by ID where the block is not known.

Jump to

Keyboard shortcuts

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