alpenlabs / strata

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

Add envs for L2 sync configuration #393

Closed sapinb closed 1 month ago

sapinb commented 1 month ago

Description

Adds following envs to configure L2 sync to unblock fullnode if it gets stuck.

SYNC_BATCH_SIZE SYNC_THROTTLE_MS FCM_QUEUE_SIZE CSM_QUEUE_SIZE CUP_QUEUE_SIZE

Note: This should be considered a workaround until the issue with fcm - csm channel deadlock is resolved.\

Type of Change

Checklist

Related Issues

codecov[bot] commented 1 month ago

Codecov Report

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

Please upload report for BASE (releases/0.1.0@63b2426). Learn more about missing BASE report.

Files with missing lines Patch % Lines
crates/common/src/env.rs 0.00% 7 Missing :warning:
crates/consensus-logic/src/sync_manager.rs 0.00% 7 Missing :warning:
crates/sync/src/worker.rs 0.00% 3 Missing :warning:
bin/strata-client/src/main.rs 0.00% 2 Missing :warning:
@@                Coverage Diff                @@
##             releases/0.1.0     #393   +/-   ##
=================================================
  Coverage                  ?   57.31%           
=================================================
  Files                     ?      255           
  Lines                     ?    26958           
  Branches                  ?        0           
=================================================
  Hits                      ?    15452           
  Misses                    ?    11506           
  Partials                  ?        0           
Files with missing lines Coverage Δ
bin/strata-client/src/main.rs 0.00% <0.00%> (ø)
crates/sync/src/worker.rs 0.00% <0.00%> (ø)
crates/common/src/env.rs 0.00% <0.00%> (ø)
crates/consensus-logic/src/sync_manager.rs 0.00% <0.00%> (ø)