persisters

package
v0.42.3-util-fix Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 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 handles persisting of execution data for all PersisterStore-s to database. Each BlockPersister instance is created for ONE specific block

func NewBlockPersister

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

NewBlockPersister creates a new block persister.

func (*BlockPersister) Persist

func (p *BlockPersister) Persist() error

Persist save data in provided persisted stores and commit updates to the database. No errors are expected during normal operations

type RegistersPersister

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

RegistersPersister handles registers

func NewRegistersPersister

func NewRegistersPersister(
	inMemoryRegisters *unsynchronized.Registers,
	permanentRegisters storage.RegisterIndex,
	height uint64,
) *RegistersPersister

func (*RegistersPersister) Persist

func (r *RegistersPersister) Persist() error

Persist persists registers No errors 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