Closed DamianPala closed 4 weeks ago
Thanks for this @DamianPala ! Can you point it to the blank_slate
branch
A few comments:
high transaction volume
, also retry on the 400
error code cases (all other 400 error code cases should not need retrying):
You can only submit a benchmark once per X seconds
You can only submit a proof once per X seconds
>500
error code casessubmit_benchmark
and submit_proof
to use future_utils::spawn
to create a separate task to do submissions so it doesn't block the main loop
Arc<Mutex<...>>
or a Arc<RwLock<...>>
around query_data so you can safely access from multiple tasks/threads
When submitting a benchmark or proof, if a
high transaction volume error
occurs, the algorithm waits until a new block is mined before retrying. If aproof already submitted
error occurs, the submission will not be repeated. Added more descriptive logs to enhance the clarity of the submission process.