system

package
v0.43.4-access-schd-tx.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinSystemTxCount is the minimum number of transactions in a system collection with scheduled
	// transactions enabled. This includes the system chunk and the process callbacks transactions.
	MinSystemTxCount = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemCollection

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

SystemCollection represents a system collection and exposes the transaction bodies of each transaction within the collection.

func DefaultSystemCollection

func DefaultSystemCollection(chainID flow.ChainID, scheduledTransactionsEnabled bool) (*SystemCollection, error)

DefaultSystemCollection returns the default system collection for the given chain ID. This is the system collection that contains only static system transactions, and no scheduled transactions. If scheduled transactions are disabled, the system collection will contain only the system chunk transaction.

No error returns are expected during normal operation.

func NewSystemCollection

func NewSystemCollection(chainID flow.ChainID, events flow.EventsList) (*SystemCollection, error)

NewSystemCollection returns a new system collection for the given chain ID including scheduled transactions for each PendingExecution event contained in the events list.

No error returns are expected during normal operation.

func (*SystemCollection) ByID

ByID returns the system transaction body by ID. Returns true if the transaction was found in the collection, false otherwise.

func (*SystemCollection) SystemTxID

func (s *SystemCollection) SystemTxID() flow.Identifier

SystemTxID returns the ID of the system transaction. This is the last transaction in the system collection, which is responsible for protocol management.

func (*SystemCollection) Transactions

func (s *SystemCollection) Transactions() []*flow.TransactionBody

Transactions returns the transactions in the system collection.

Jump to

Keyboard shortcuts

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