database

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 26 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"
	// subfolder for the tangle database
	TangleDatabaseDirectoryName = "tangle"
	// subfolder for the UTXO database
	UTXODatabaseDirectoryName = "utxo"
)
View Source
const (
	// the used database engine (pebble/rocksdb/mapdb).
	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, dbEngine ...database.Engine) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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