persisters

package
v0.50.1-unsafe-payload... Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPersister

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

BlockPersister stores execution data for a single execution result into the database. It uses the set of stores.PersisterStore to persist the data with a single atomic batch operation. To ensure the database only contains data certified by the protocol, the block persister must only be called for sealed execution results.

func NewBlockPersister

func NewBlockPersister(
	log zerolog.Logger,
	protocolDB storage.DB,
	lockManager lockctx.Manager,
	executionResult *flow.ExecutionResult,
	persisterStores []stores.PersisterStore,
) *BlockPersister

NewBlockPersister creates a new block persister.

func (*BlockPersister) Persist

func (p *BlockPersister) Persist() error

Persist atomically stores all data into the database using the configured persister stores.

No error returns are expected during normal operations

type RegistersPersister

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

RegistersPersister stores register data for a single execution result into the registers db in a single atomic batch operation. To ensure the database only contains data certified by the protocol, the registers persister must only be called for sealed execution results.

func NewRegistersPersister

func NewRegistersPersister(
	data []flow.RegisterEntry,
	registers storage.RegisterIndex,
	height uint64,
) *RegistersPersister

func (*RegistersPersister) Persist

func (r *RegistersPersister) Persist() error

Persist stores the register entries into the registers db

No error returns are expected during normal operations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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