persisters

package
v0.42.2-experimental-b... Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

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