chore(gas_price_service): add a method to wait until storages are synced #2886
Labels
good first issue
Good for newcomers
tech-debt
The issue is to improve the current code and make it more clear/generic/reusable/pretty/avoidable.
since we have the gas price service depending upon the onchain database as well as the gas price database, we need a reliable way to run tests such that the gas price database is known to have been updated by some state change in the onchain database i.e new L2 block, for example.
#2874 (comment)
the relayer provides similar functionality via
await_synced
:fuel-core/crates/services/relayer/src/service.rs
Lines 298 to 309 in 90c855c
Definition of done
NotSynced
and when it is done processing the block, updates it toSynced(height)
await_synced
method with a timeout insteadThe text was updated successfully, but these errors were encountered: