config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainIDFromHome

func GetChainIDFromHome(home string) (string, error)

GetChainIDFromHome returns the chain ID from the client configuration in the given home directory.

func OpenDB

func OpenDB(_ types.AppOptions, home string, backendType dbm.BackendType) (dbm.DB, error)

OpenDB opens a database based on the specified backend type. It takes the home directory where the database data will be stored, along with the backend type. It opens a database named "application" using the specified backend type and the data directory. It returns the opened database and an error (if any). If the database opens successfully, the error will be nil.

NOTE: this is included in builds without rocksdb. When building the binary with rocksdb, the code in 'rocksdb.go' will be included instead of this

func OpenReadOnlyDB

func OpenReadOnlyDB(home string, backendType dbm.BackendType) (dbm.DB, error)

OpenReadOnlyDB opens rocksdb backend in read-only mode.

func SetBip44CoinType

func SetBip44CoinType(config *sdk.Config)

SetBip44CoinType sets the global coin type to be used in hierarchical deterministic wallets.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳