Ori Newman a4bb070722
[NOD-754] Fix staticcheck errors (#627)
* [NOD-754] Fix staticcheck errors

* [NOD-754] Remove some unused exported functions

* [NOD-754] Fix staticcheck errors

* [NOD-754] Don't panic if out/in close fails

* [NOD-754] Wrap outside errors with custom message
2020-02-18 16:56:38 +02:00
..
2020-02-18 16:56:38 +02:00

ffldb

ISC License GoDoc

Package ffldb implements a driver for the database package that uses leveldb for the backing metadata and flat files for block storage.

This driver is the recommended driver for use with kaspad. It makes use of leveldb for the metadata, flat files for block storage, and checksums in key areas to ensure data integrity.

Usage

This package is a driver to the database package and provides the database type of "ffldb". The parameters the Open and Create functions take are the database path as a string and the block network.

db, err := database.Open("ffldb", "path/to/database", wire.Mainnet)
if err != nil {
	// Handle error
}
db, err := database.Create("ffldb", "path/to/database", wire.Mainnet)
if err != nil {
	// Handle error
}