rawdb

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BeaconDataConfigurations map[string]*BeaconDataConfig = map[string]*BeaconDataConfig{
	"full": {
		BackFillingAmount:   math.MaxUint64,
		SlotPerRestorePoint: 0,
	},
	"minimal": {
		BackFillingAmount:   500_000,
		SlotPerRestorePoint: 0,
	},
	"light": {
		BackFillingAmount:   0,
		SlotPerRestorePoint: 0,
	},
}

Configurations for beacon database config

Functions

func WriteBeaconDataConfig

func WriteBeaconDataConfig(tx kv.Putter, cfg *BeaconDataConfig) error

Types

type BeaconDataConfig

type BeaconDataConfig struct {
	BackFillingAmount   uint64 `json:"backFillingAmount"` // it is string to handle all/minimal.
	SlotPerRestorePoint uint64 `json:"sprp"`              // TODO
}

func ReadBeaconDataConfig

func ReadBeaconDataConfig(tx kv.Getter) (*BeaconDataConfig, error)

Jump to

Keyboard shortcuts

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