mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-1412] Remove ffldb, and make ldb implement all the database interfaces * [NOD-1412] Removed any reference to dataStore and updated block dbaccess to work directly with key/values
20 lines
478 B
Go
20 lines
478 B
Go
package ldb
|
|
|
|
import "github.com/syndtr/goleveldb/leveldb/opt"
|
|
|
|
var (
|
|
defaultOptions = opt.Options{
|
|
Compression: opt.NoCompression,
|
|
BlockCacheCapacity: 256 * opt.MiB,
|
|
WriteBuffer: 128 * opt.MiB,
|
|
DisableSeeksCompaction: true,
|
|
}
|
|
|
|
// Options is a function that returns a leveldb
|
|
// opt.Options struct for opening a database.
|
|
// It's defined as a variable for the sake of testing.
|
|
Options = func() *opt.Options {
|
|
return &defaultOptions
|
|
}
|
|
)
|