input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
122 stars 37 forks source link

Optimize block range roots computation #1655

Closed jpraynaud closed 4 months ago

jpraynaud commented 4 months ago

Content

This PR includes an optimization on the computation of the block range roots so that there is a limited accumulation of the computed root before they are stored in the database (in particular to avoid the error variable number must be between ?1 and ?32766 from SQLite).

Pre-submit checklist

Issue(s)

Relates to #1633

github-actions[bot] commented 4 months ago

Test Results

    3 files  ±0     43 suites  ±0   8m 15s :stopwatch: -18s   976 tests ±0    976 :white_check_mark: ±0  0 :zzz: ±0  0 :x: ±0  1 070 runs  ±0  1 070 :white_check_mark: ±0  0 :zzz: ±0  0 :x: ±0 

Results for commit 4c28f6c0. ± Comparison against base commit 06733520.