Documentation ¶
Index ¶
Constants ¶
View Source
const FlagTrieRocksdbBatchSize = "trie.rocksdb-batch-size"
Variables ¶
View Source
var TrieRocksdbBatchSize uint = 10
Functions ¶
func CreateKvDB ¶
func CreateKvDB(name string, backend BackendType, dir string) (ethdb.KeyValueStore, error)
func NewMptLevelDB ¶
func NewMptLevelDB(name string, dir string) (ethdb.KeyValueStore, error)
func NewMptMemDB ¶
func NewMptMemDB(name string, dir string) (ethdb.KeyValueStore, error)
Types ¶
type BackendType ¶
type BackendType string
------------------------------------------
const ( // GoLevelDBBackend represents goleveldb (github.com/syndtr/goleveldb - most // popular implementation) // - pure go // - stable GoLevelDBBackend BackendType = "goleveldb" // RocksDBBackend represents rocksdb (uses github.com/cosmos/gorocksdb) // - EXPERIMENTAL // - requires gcc // - use rocksdb build tag (go build -tags rocksdb) RocksDBBackend BackendType = "rocksdb" // MemDBBackend represents in-memory key value store, which is mostly used // for testing. MemDBBackend BackendType = "memdb" )
These are valid backend types.
Click to show internal directories.
Click to hide internal directories.