You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we create one instance of CodeFetcher in the price estimator factory and another one for the OrderValidator in the orderbook. There is no reason these need to be separate instances so by sharing 1 instance in both contexts we could reduce the number of RPC calls we issue for fetching code at a given address.
The text was updated successfully, but these errors were encountered:
# Description
<!--- Describe your changes to provide context for reviewers, including
why it is needed -->
Reduce the number of RPC calls by instantiating the code fetcher only
once.
# Changes
<!-- List of detailed changes (how the change is accomplished) -->
- [ ] Instanciate code_fetcher in run (orderbook)
- [ ] Pass it to PriceEstimatorFactory
Fixes#2429
---------
Co-authored-by: Felix Leupold <felixleupold90@gmail.com>
Background
Currently we create one instance of
CodeFetcher
in the price estimator factory and another one for theOrderValidator
in the orderbook. There is no reason these need to be separate instances so by sharing 1 instance in both contexts we could reduce the number of RPC calls we issue for fetching code at a given address.The text was updated successfully, but these errors were encountered: