alpenlabs / strata

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

STR-523 sync event RPCs #400

Closed delbonis closed 1 month ago

delbonis commented 1 month ago

Description

This adds RPCs to fetch sync events and the outputs they produce to aid in troubleshooting sync bugs.

Type of Change

Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 29.41176% with 36 lines in your changes missing coverage. Please review.

Project coverage is 57.11%. Comparing base (31cab87) to head (3689b02).

Files with missing lines Patch % Lines
bin/strata-client/src/rpc_server.rs 0.00% 29 Missing :warning:
crates/state/src/client_state.rs 57.14% 3 Missing :warning:
crates/state/src/l1/header_verification.rs 60.00% 2 Missing :warning:
crates/consensus-logic/src/client_transition.rs 0.00% 1 Missing :warning:
crates/state/src/l1/id.rs 50.00% 1 Missing :warning:
@@           Coverage Diff           @@
##             main     #400   +/-   ##
=======================================
  Coverage   57.10%   57.11%           
=======================================
  Files         255      255           
  Lines       26978    27011   +33     
=======================================
+ Hits        15407    15428   +21     
- Misses      11571    11583   +12     
Files with missing lines Coverage Δ
crates/rpc/api/src/lib.rs 0.00% <ø> (ø)
crates/state/src/batch.rs 2.89% <100.00%> (ø)
crates/state/src/operation.rs 34.64% <100.00%> (ø)
crates/state/src/sync_event.rs 100.00% <100.00%> (ø)
crates/consensus-logic/src/client_transition.rs 61.93% <0.00%> (ø)
crates/state/src/l1/id.rs 94.73% <50.00%> (-5.27%) :arrow_down:
crates/state/src/l1/header_verification.rs 65.06% <60.00%> (+12.91%) :arrow_up:
crates/state/src/client_state.rs 52.00% <57.14%> (ø)
bin/strata-client/src/rpc_server.rs 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes