database

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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"
	// whether to check if the ledger state matches the total supply on startup
	CfgCheckLedgerStateOnStartup = "db.checkLedgerStateOnStartup"
)

Variables

View Source
var (
	CorePlugin *node.CorePlugin
)

Functions

func NeedsSplitting

func NeedsSplitting(dbPath string) (bool, error)

func SplitIntoTangleAndUTXO

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