mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 22:06:42 +00:00

* [DEV-326] Worked around a parallelism issue in go test. Fixed a test where a file was being deleted while still open. * [DEV-326] Worked around a timer-related oddity. * [DEV-326] Fixed closing a file twice. * [DEV-326] Using pdb.closed instead of an additional variable.
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.