database

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// whether to delete the database at startup
	CfgTangleDeleteDatabase = "deleteDatabase"
	// whether to delete the database and snapshots at startup
	CfgTangleDeleteAll = "deleteAll"

	TangleDatabaseDirectoryName = "tangle"
	UTXODatabaseDirectoryName   = "utxo"
)
View Source
const (
	// the used database engine (pebble/rocksdb).
	CfgDatabaseEngine = "db.engine"
	// the path to the database folder.
	CfgDatabasePath = "db.path"
	// whether to automatically start revalidation on startup if the database is corrupted.
	CfgDatabaseAutoRevalidation = "db.autoRevalidation"
	// ignore the check for corrupted databases (should only be used for debug reasons).
	CfgDatabaseDebug = "db.debug"
)

Variables

View Source
var (
	CorePlugin *node.CorePlugin
)

Functions

func NeedsSplitting added in v1.1.0

func NeedsSplitting(dbPath string) (bool, error)

func SplitIntoTangleAndUTXO added in v1.1.0

func SplitIntoTangleAndUTXO(databasePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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