Skip to content

Conversation

@nhtyy
Copy link
Contributor

@nhtyy nhtyy commented Feb 10, 2025

This PR adds "chunking" to the "header range requests" and a sleep in between chunks, as we now need to work around ratelimiting.

This PR also removes an unused function.

The general strategy is that it always tries concurrently fetch the chunks, however, if it encounters a partial failure (ie. half the chunk is an err due to rate limiting), it will save all the Ok(_) results and sleep (with exponential backoff).

It also removes unwraps and uses anyhow Error in place.

Also to note: It will sleep for a shorter time if an error is returned from run

@nhtyy nhtyy force-pushed the n/chunk-header-requests branch from 8bb87dd to 5e8a04e Compare February 10, 2025 23:40
nhtyy and others added 13 commits February 18, 2025 15:55
* chore: cleanup api / util seperation

* chore: add retries to some tendermint routes

* fix: dont need option on sleep duration

* feat: multi-chain operator

* log -> tracing

* fix: cleanup

* separate logs

* feat: batch proofs

* fix: log chain id on fail

* temp: prints

* cleanup

* comments, default env filter

* fix: use old env setup for one chain

* update example env

* Update script/src/util/retry.rs

Co-authored-by: Ratan Kaliani <[email protected]>

* fix: move consensus checks of target block to `run_inner`

* Update script/bin/operator.rs

Co-authored-by: Ratan Kaliani <[email protected]>

* fix: remove `we` from comments

* fix: new fn for vkey/data commit max checks

* add section headings in operator, use_kms -> signer mode

* missed `we`

* fix: use_kms_relayer -> signer_mode

* run -> loop

Co-authored-by: Ratan Kaliani <[email protected]>

* Revert "run -> loop"

This reverts commit c4eacbf.

* chore: simplify operator loop, renaming, better comments (#50)

* chore: help refactor

* add

* add

* chore: arc networkprover

* chore: docs

* docs

* chore: fmt

* rm unused clones & arc

---------

Co-authored-by: Ratan Kaliani <[email protected]>
@nhtyy nhtyy force-pushed the n/chunk-header-requests branch from 8aa9529 to 9e6dad6 Compare February 18, 2025 23:55
Copy link

@ratankaliani ratankaliani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nhtyy nhtyy merged commit a2ee3e7 into main Feb 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants