Documentation ¶
Index ¶
- func GetBatchesDbInstance() *leveldb.DB
- func GetBlockDbInstance() *leveldb.DB
- func GetDaDbInstance() *leveldb.DB
- func GetProofDbInstance() *leveldb.DB
- func GetPublicWitnessDbInstance() *leveldb.DB
- func GetStaticDbInstance() *leveldb.DB
- func GetTxDbInstance() *leveldb.DB
- func InitBatchesDb() bool
- func InitBlockDb() bool
- func InitDaDb() bool
- func InitDb() bool
- func InitProofDb() bool
- func InitPublicWitnessDb() bool
- func InitStaticDb() bool
- func InitTxDb() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBatchesDbInstance ¶
GetBatchesDbInstance The function `GetBatchesDbInstance()` is returning the instance of the LevelDB database that was initialized in the `InitBatchesDb()` function. This allows other parts of the code to access and use the LevelDB database instance for performing operations such as reading or writing data.
func GetBlockDbInstance ¶
GetBlockDbInstance The function returns the instance of the block database.
func GetDaDbInstance ¶
func GetProofDbInstance ¶
GetProofDbInstance The function `GetProofDbInstance()` is returning the instance of the LevelDB database that was initialized in the `InitProofDb()` function. This allows other parts of the code to access and use the LevelDB database instance for performing operations such as reading or writing data.
func GetStaticDbInstance ¶
GetStaticDbInstance The function `GetStaticDbInstance()` is returning the instance of the LevelDB database that was initialized in the `InitStaticDb()` function. This allows other parts of the code to access and use the LevelDB database instance for performing operations such as reading or writing data.
func GetTxDbInstance ¶
GetTxDbInstance The function GetTxDbInstance returns the instance of the leveldb database.
func InitBatchesDb ¶
func InitBatchesDb() bool
InitBatchesDb The function initializes a batches LevelDB database and returns a boolean indicating whether the initialization was successful or not.
func InitBlockDb ¶
func InitBlockDb() bool
InitBlockDb The function initializes a LevelDB database for storing blocks and returns a boolean indicating whether the initialization was successful.
func InitDb ¶
func InitDb() bool
InitDb The function `InitDb` initializes 4 different databases and returns true if all of them are successfully initialized, otherwise it returns false.
func InitProofDb ¶
func InitProofDb() bool
InitProofDb The function initializes a proof LevelDB database and returns a boolean indicating whether the initialization was successful or not.
func InitPublicWitnessDb ¶
func InitPublicWitnessDb() bool
func InitStaticDb ¶
func InitStaticDb() bool
InitStaticDb The function initializes a static LevelDB database and returns a boolean indicating whether the initialization was successful or not.
Types ¶
This section is empty.