Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBINSTANCE = atomic.Value{}
config instance
Functions ¶
func CreateDB ¶
func CreateDB(config *config.Nodeconfig, name string) (hpbdb.Database, error)
CreateDB creates the chain database.
func GetHpbDbInstance ¶
func GetHpbDbInstance() *hpbdb.LDBDatabase
func OpenDatabase ¶
OpenDatabase opens an existing database with the given name (or creates one if no previous can be found) from within the node's data directory. If the node is an ephemeral one, a memory database is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.