air_leveldb

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBatchesDbInstance

func GetBatchesDbInstance() *leveldb.DB

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

func GetBlockDbInstance() *leveldb.DB

The function returns the instance of the block database.

func GetDaDbInstance

func GetDaDbInstance() *leveldb.DB

func GetProofDbInstance

func GetProofDbInstance() *leveldb.DB

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 GetPublicWitnessDbInstance

func GetPublicWitnessDbInstance() *leveldb.DB

func GetStaticDbInstance

func GetStaticDbInstance() *leveldb.DB

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

func GetTxDbInstance() *leveldb.DB

The function GetTxDbInstance returns the instance of the air-leveldb database.

func InitBatchesDb

func InitBatchesDb() bool

The function initializes a batches LevelDB database and returns a boolean indicating whether the initialization was successful or not.

func InitBlockDb

func InitBlockDb() bool

The function initializes a LevelDB database for storing blocks and returns a boolean indicating whether the initialization was successful.

func InitDaDb

func InitDaDb() bool

func InitDb

func InitDb() bool

The function `InitDb` initializes three different databases and returns true if all of them are successfully initialized, otherwise it returns false.

func InitProofDb

func InitProofDb() bool

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

The function initializes a static LevelDB database and returns a boolean indicating whether the initialization was successful or not.

func InitTxDb

func InitTxDb() bool

The function initializes a LevelDB database for transactions and returns a boolean indicating whether the initialization was successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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