Chia-Network / chia_rs

Rust crate & wheel with consensus code
Apache License 2.0
19 stars 24 forks source link

[CHIA-786] Update tools to work with the hard-fork #581

Closed arvidn closed 2 months ago

arvidn commented 2 months ago

The main change is to make analyze-chain use run_block_generator() and to also make test-block-generators correctly switch to run_block_generator2() at the hard fork block height.

Since analyze-chain is changed to use run_block_generator() instead of run_program_with_counters() it can no longer collect operator- and stack size counters. The output is changed and the log parser scripts are updated to account for this.

Example output from analyze-chain:

block-wall-clock-delta-cdf block-execution-time-cdf

coveralls-official[bot] commented 2 months ago

Pull Request Test Coverage Report for Build 9579407440

Details


Files with Coverage Reduction New Missed Lines %
crates/chia-consensus/src/gen/run_puzzle.rs 1 98.31%
crates/chia-traits/src/streamable.rs 1 94.03%
crates/chia-consensus/src/gen/run_block_generator.rs 2 94.83%
crates/chia-bls/src/parse_hex.rs 3 60.0%
crates/chia-consensus/src/gen/validation_error.rs 4 24.19%
wheel/src/adapt_response.rs 4 0.0%
crates/chia-consensus/src/gen/conditions.rs 5 99.37%
crates/clvm-traits/src/clvm_decoder.rs 6 83.33%
crates/chia-protocol/src/lazy_node.rs 9 64.0%
wheel/src/run_program.rs 10 70.59%
<!-- Total: 573 -->
Totals Coverage Status
Change from base Build 9562939778: -4.1%
Covered Lines: 11098
Relevant Lines: 14099

💛 - Coveralls