Questions tagged [rocks-db]
The rocks-db tag has no usage guidance.
13
questions
1
vote
1
answer
10
views
How are we now able to use the kvdb Rust library with ParityDB as a key-value store abstraction?
At the moment building the Substrate repository requires RocksDB library librocksdb-sys and all its native dependencies to be pulled in, but it also supports testing out the "faster and more ...
0
votes
0
answers
20
views
Why can't we pass the path to a database other than RocksDB (e.g. ParityDB) to the Substrate Service?
The Substrate Client has a:
Substrate CLI here, where we're given the option to choose to use either RocksDB or ParityDB
Substrate Service (sc-service) where here it states:
"The RocksDB ...
0
votes
1
answer
14
views
Why can we limit the memory the RocksDB database cache can use but not for ParityDB?
In the Substrate CLI why can we limit the memory that the RocksDB database cache can use if we choose to use it here, but we're not given the option to limit the memory that ParityDB uses if we choose ...
0
votes
1
answer
14
views
Syncing a new node, prepopulate db with polkadot
When syncing a new node from scratch it takes several days just to transfer and validate the polkadot chain. Comparing two runs reveals there are no simulates at all with the sst files.
Is there an ...
2
votes
0
answers
121
views
usage parity-db instead of rocksdb
in the substrate-node-template case , I don't want to compile rocks-db at all. how it would be possible compile parity-db instead of rocks-db?
1
vote
2
answers
142
views
build failed with substrate chain on rocksdb in linux
I followed this tutorial https://docs.substrate.io/tutorials/get-started/build-local-blockchain/. I got the below error when run cargo build --release. How can I fix it?
cargo build -v --release
...
0
votes
0
answers
25
views
Error after updating a substrate chain DB corrupted
I have updated a running Substrate network and after sometimes seeing the following error
DB has been previously marked as corrupted attempting to repair
How to handle this kind of an error?
Have ...
0
votes
1
answer
107
views
Build RocksDB failed at snappy/snappy.cc:1033:36: error: invalid output constraint '=@ccz' in asm in MacOS while installing substrate-node-template
I use the substrate-developer-hub/substrate-node-template version: polkadot-v0.9.26 for practice.
When I run cargo build --release
I got error:
invalid output constraint '=@ccz' in asm : [tag_type] &...
3
votes
1
answer
140
views
How to weight `on_initialize`?
Is there any best practice how to count the weights in on_initialize correctly?
I read through the Polkadot and Substrate on_initialize weight calculations and couldn't always figure out: When to ...
2
votes
1
answer
41
views
Database rollback
Is there a command or an easy way to rollback the changes to a node's RocksDb to force the node to go back in its history and start fresh from previous block numbers? For example if the node has seen ...
1
vote
2
answers
290
views
Not able to build librocksdb-sys library for substrate-node-template
Getting this error while building substrate-node-template,
Command uses: cargo build --release
error: failed to run custom build command for librocksdb-sys v0.6.1+6.28.2
MacBook Air 2017, MacOS ...
3
votes
1
answer
90
views
How to to run the substrate-node-template with parity-db instead of rockdb?
I'm looking for a how-to-guide, or an example that runs the substrate-node-template using parity-db instead of rockdb.
3
votes
2
answers
548
views
failed to run custom build command for `librocksdb-sys v6.20.3`
My build was working last week now I can't build rocksdb for some reason.
I made sure that I went though the install steps again in case I was missing something.
Here's the rest of the out:
error: ...