alpenlabs / strata

Rust implementation of the Strata protocol
https://docs.stratabtc.org
Apache License 2.0
23 stars 1 forks source link

STR-182 chainstate manager refactors #466

Open delbonis opened 2 days ago

delbonis commented 2 days ago

Description

This sets up the chainstate interface, to do more of the bookkeeping in memory and avoid hitting the database as much.

Somewhat blocked on refactoring the traits, as I just realized halfway through making this. On hold for a bit as that should be merged soon.

Type of Change

Checklist

codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 57.22%. Comparing base (d8b1013) to head (7d0a99c).

Files with missing lines Patch % Lines
crates/storage/src/ops/chainstate.rs 0.00% 32 Missing :warning:
@@            Coverage Diff             @@
##             main     #466      +/-   ##
==========================================
- Coverage   57.30%   57.22%   -0.08%     
==========================================
  Files         252      253       +1     
  Lines       28207    28239      +32     
==========================================
- Hits        16165    16161       -4     
- Misses      12042    12078      +36     
Files with missing lines Coverage Δ
crates/storage/src/ops/chainstate.rs 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes