Documentation ¶
Index ¶
- func CleanupBlockDB(cfg *config.Config)
- func Glogger() *log.GlogHandler
- func InitLogRotator(logFile string)
- func LoadBlockDB(cfg *config.Config) (database.DB, error)
- func LoadConfig() (*config.Config, []string, error)
- func LogWrite() *logWriter
- func ParseAndSetDebugLevels(debugLevel string) error
- func StandardScriptVerifyFlags() (txscript.ScriptFlags, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupBlockDB ¶
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 ¶
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 ¶
loadConfig initializes and parses the config using a config file and command line options.
func ParseAndSetDebugLevels ¶ added in v0.10.1
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.