mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
New database trait (#5549)
* Introduce trait * The trait * Generic * Basic impls. * Remove unneeded bounds * Minor changes * Switch over to the new DB trait * Integrated parity-db and added CLI for db selection * Default impl. * Fix logs. * Started integrating subdb * Apply suggestions from code review Co-Authored-By: Cecile Tonglet <cecile@parity.io> * Apply suggestions from code review Co-Authored-By: Nikolay Volf <nikvolf@gmail.com> * Enable subdb * Bump parity-db * Fixed CLI macro * Fixed browser build * Fixed features * Sort out features * Use parity-db from crates.io * Typo Co-authored-by: arkpar <arkady.paronyan@gmail.com> Co-authored-by: Cecile Tonglet <cecile@parity.io> Co-authored-by: Nikolay Volf <nikvolf@gmail.com>
This commit is contained in:
@@ -148,7 +148,7 @@ cli = [
|
||||
"node-transaction-factory",
|
||||
"sc-cli",
|
||||
"frame-benchmarking-cli",
|
||||
"sc-service/rocksdb",
|
||||
"sc-service/db",
|
||||
"structopt",
|
||||
"substrate-build-script-utils",
|
||||
]
|
||||
|
||||
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
pallet-balances = { version = "2.0.0-dev", path = "../../../frame/balances" }
|
||||
sc-client = { version = "0.8.0-dev", path = "../../../client/" }
|
||||
sc-client-db = { version = "0.8.0-dev", path = "../../../client/db/", features = ["kvdb-rocksdb"] }
|
||||
sc-client-db = { version = "0.8.0-dev", path = "../../../client/db/", features = ["kvdb-rocksdb", "parity-db"] }
|
||||
sc-client-api = { version = "2.0.0-dev", path = "../../../client/api/" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.0" }
|
||||
pallet-contracts = { version = "2.0.0-dev", path = "../../../frame/contracts" }
|
||||
@@ -54,4 +54,4 @@ fs_extra = "1"
|
||||
[dev-dependencies]
|
||||
criterion = "0.3.0"
|
||||
sc-cli = { version = "0.8.0-dev", path = "../../../client/cli" }
|
||||
sc-service = { version = "0.8.0-dev", path = "../../../client/service", features = ["rocksdb"] }
|
||||
sc-service = { version = "0.8.0-dev", path = "../../../client/service", features = ["db"] }
|
||||
|
||||
@@ -184,7 +184,7 @@ impl BenchDb {
|
||||
state_cache_size: 16*1024*1024,
|
||||
state_cache_child_ratio: Some((0, 100)),
|
||||
pruning: PruningMode::ArchiveAll,
|
||||
source: sc_client_db::DatabaseSettingsSrc::Path {
|
||||
source: sc_client_db::DatabaseSettingsSrc::RocksDb {
|
||||
path: dir.into(),
|
||||
cache_size: 512,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user