walstore

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 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

func DefaultWALDir

func DefaultWALDir(dbPath string) string

Types

type TendermintWALStore

type TendermintWALStore[V types.Hashable[H], H types.Hash, A types.Addr] interface {
	// Flush writes pending records to the WAL.
	Flush() error
	// LoadAllEntries returns stored WAL entries ordered by height.
	LoadAllEntries() iter.Seq2[wal.Entry[V, H, A], error]
	// SetWALEntry buffers an entry until Flush or Close.
	SetWALEntry(entry wal.Entry[V, H, A]) error
	// DeleteWALEntries buffers a prune for all entries up to and including height.
	DeleteWALEntries(height types.Height) error
	// Close flushes pending records and closes WAL resources.
	Close() error
}

TendermintWALStore persists consensus WAL entries so the node can recover after a crash.

func NewTendermintWALStore

func NewTendermintWALStore[V types.Hashable[H], H types.Hash, A types.Addr](
	database kvdb.KeyValueStore,
) (TendermintWALStore[V, H, A], error)

NewTendermintWALStore creates a new TendermintWALStore backed by Pebble's standalone WAL implementation.

Jump to

Keyboard shortcuts

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