mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-08 07:06:43 +00:00

* [NOD-570] Separate genesis variables for different netwroks * [NOD-570] Make Testnet genesis * [NOD-570] Make simnet and regtest genesis * [NOD-570] Remake devnet genesis * [NOD-570] Rename regNet -> regTest testnet->testNet * [NOD-570] Change network names to one word instead of camel case * [NOD-570] Change network names to one word instead of camel case * [NOD-570] Fix test names * [NOD-570] Fix TestGHOSTDAG Co-authored-by: Dan Aharoni <dereeno@protonmail.com>
26 lines
763 B
Go
26 lines
763 B
Go
/*
|
|
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 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
|
|
}
|
|
*/
|
|
package ffldb
|