• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..13-May-2020-

README.mdH A D13-May-20201.2 KiB4231

bench_test.goH A D13-May-20202.2 KiB9875

blockio.goH A D13-May-202027.4 KiB770373

db.goH A D13-May-202068.1 KiB2,027992

dbcache.goH A D13-May-202021.8 KiB661335

doc.goH A D13-May-2020914 301

driver.goH A D13-May-20202.1 KiB8558

driver_test.goH A D13-May-20208.1 KiB289216

export_test.goH A D13-May-2020943 279

interface_test.goH A D13-May-202064.1 KiB2,3011,655

ldbtreapiter.goH A D13-May-20202 KiB5928

mockfile_test.goH A D13-May-20203.9 KiB164102

reconcile.goH A D13-May-20204.4 KiB11868

whitebox_test.goH A D13-May-202019 KiB707519

README.md

1ffldb
2=====
3
4[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd)
5[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
6[![GoDoc](https://godoc.org/github.com/btcsuite/btcd/database/ffldb?status.png)](http://godoc.org/github.com/btcsuite/btcd/database/ffldb)
7=======
8
9Package ffldb implements a driver for the database package that uses leveldb for
10the backing metadata and flat files for block storage.
11
12This driver is the recommended driver for use with btcd.  It makes use leveldb
13for the metadata, flat files for block storage, and checksums in key areas to
14ensure data integrity.
15
16Package ffldb is licensed under the copyfree ISC license.
17
18## Usage
19
20This package is a driver to the database package and provides the database type
21of "ffldb".  The parameters the Open and Create functions take are the
22database path as a string and the block network.
23
24```Go
25db, err := database.Open("ffldb", "path/to/database", wire.MainNet)
26if err != nil {
27	// Handle error
28}
29```
30
31```Go
32db, err := database.Create("ffldb", "path/to/database", wire.MainNet)
33if err != nil {
34	// Handle error
35}
36```
37
38## License
39
40Package ffldb is licensed under the [copyfree](http://copyfree.org) ISC
41License.
42