Chia-Network / chia_rs

Rust crate & wheel with consensus code
Apache License 2.0
21 stars 26 forks source link

start a tool to validate aspects of the blockchain database #792

Closed arvidn closed 1 day ago

arvidn commented 1 day ago

add tool to validate some aspects of a blockchain database file. Most importantly, that the coin set is consistent with all the blocks.

To use this program:

cd crates/chia-tools
cargo run --release --bin validate-blockchain-db -- ~/.chia/mainnet/db/blockchain_v2_mainnet.sqlite
cargo run --release --bin validate-blockchain-db -- ~/.chia/mainnet/db/blockchain_v2_testnet11.sqlite --testnet
coveralls-official[bot] commented 1 day ago

Pull Request Test Coverage Report for Build 11838789837

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/chia-tools/src/visit_spends.rs 0 2 0.0%
<!-- Total: 0 2 0.0% -->
Totals Coverage Status
Change from base Build 11828083959: 0.01%
Covered Lines: 12847
Relevant Lines: 15326

💛 - Coveralls