common

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: ISC Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupBlockDB

func CleanupBlockDB(cfg *config.Config)

func Glogger

func Glogger() *log.GlogHandler

func InitLogRotator

func InitLogRotator(logFile string)

initLogRotator initializes the logging rotater to write logs to logFile and create roll files in the same directory. It must be called before the package-global log rotater variables are used.

func LoadBlockDB

func LoadBlockDB(cfg *config.Config) (database.DB, error)

loadBlockDB loads (or creates when needed) the block database taking into account the selected database backend and returns a handle to it. It also contains additional logic such warning the user if there are multiple databases which consume space on the file system and ensuring the regression test database is clean when in regression test mode.

func LoadConfig

func LoadConfig() (*config.Config, []string, error)

loadConfig initializes and parses the config using a config file and command line options.

func LogWrite

func LogWrite() *logWriter

func ParseAndSetDebugLevels added in v0.10.1

func ParseAndSetDebugLevels(debugLevel string) error

parseAndSetDebugLevels attempts to parse the specified debug level and set the levels accordingly. An appropriate error is returned if anything is invalid.

func StandardScriptVerifyFlags

func StandardScriptVerifyFlags() (txscript.ScriptFlags, error)

standardScriptVerifyFlags returns the script flags that should be used when executing transaction scripts to enforce additional checks which are required for the script to be considered standard. Note these flags are different than what is required for the consensus rules in that they are more strict.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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