mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 05:46:44 +00:00

* [DEV-376] Changed any instance of %v in format strings with a more specific format token * [DEV-376] Fixed some more wrong formatting strings + removed redundant cast * [DEV-376] Added fmt.Sprintf where it was missing * [DEV-376] use %s for util.Amount, to invoke .String() * [DEV-376] Some more fixes in format strings * [DEV-376] fixed mruinvmap_test to expect the correct behaviour
ffldb
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 btcd. It makes use leveldb for the metadata, flat files for block storage, and checksums in key areas to ensure data integrity.
Package ffldb is licensed under the copyfree ISC license.
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
}
License
Package ffldb is licensed under the copyfree ISC License.