compactfelt

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: 9 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

Overview

Package compactfelt records where a database switched to the compact felt forms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct{}

Migrator records the switch block. Migrations run before sync, so the chain height when it runs is the last block written with legacy felts and every block after it is compact; a rerun after a crash sees the same height. The schema bit stops a build without compact decoding from opening the database.

func (*Migrator) Before

func (*Migrator) Before([]byte) error

func (*Migrator) Migrate

func (*Migrator) Migrate(
	_ context.Context,
	database db.KeyValueStore,
	_ *networks.Network,
	logger log.StructuredLogger,
) ([]byte, error)

Jump to

Keyboard shortcuts

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