checkpoint

package
v1.0.0-preview.25 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// Store is a memstore
	// Theoretically this could also be a persistent store
	*memstore.Store
}

Store is jus a memstore, but the starting state is loaded from a checkpoint folder any new blocks exist in memory only and are not persisted to disk.

func New

func New(
	log zerolog.Logger,
	path string,
	stateCommitment string,
	chainID flow.ChainID,
) (*Store, error)

New returns a new Store implementation.

Jump to

Keyboard shortcuts

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