dcrd/database/ffldb
Dave Collins 90d73a17d3
multi: Only use module-scoped data in tests.
This updates the tests in database/ffldb and blockchain/stake to
reference the block tests within the same module as opposed to escaping
the module to find it in the blockchain module.

This is necessary for the new test all functionality of the upcoming
go1.11 release since it individually tests each module in a separate
path and therefore it prevent the ability to use relative paths that
escape the module.

Unfortunately, this means the data had to be copied, but, but it's not a
huge amount of data, and it seems that git mostly deduplicates the data
internally.
2018-08-16 15:08:07 -05:00
..
bench_test.go Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
blockio.go multi: fix some maligned linter warnings 2018-02-13 14:50:33 -06:00
db.go Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
dbcache.go remove deadcode 2017-07-17 15:06:47 -05:00
doc.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
driver_test.go Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
driver.go multi: Replace btclog with slog. 2018-05-23 14:22:10 -05:00
export_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
interface_test.go travis: add ineffassign linter 2017-12-01 09:14:04 -05:00
ldbtreapiter.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
mockfile_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
README.md multi: Update markdown in README files to match change in github parser. 2017-05-26 12:06:19 -04:00
reconcile.go all: Remove seelog logger. 2017-06-20 10:58:10 -04:00
whitebox_test.go multi: Only use module-scoped data in tests. 2018-08-16 15:08:07 -05:00

ffldb

Build Status 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 dcrd. 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.