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
In several places, an internal function accepts a block parameter but the caller API function does not, some examples are:
metagraph.py: Metagraph.sync_nodes
weights.py: _min_interval_to_set_weights and _blocks_since_last_update
Reason:
Some validator setups cache the current block to avoid making too many requests to get it, and instead operate under a cached block for 12 second intervals(even if the block is outdated), but this is not possible if the option is not present in the user-facing APIs.
The text was updated successfully, but these errors were encountered:
I agree with the reasoning regarding the caching of the current block in validator setups. Caching helps to significantly reduce the number of requests made to the network, which can improve overall performance and reduce latency. By operating under a cached block for intervals of 12 seconds, validators can maintain a more stable and efficient operation, especially during peak times when network requests may be high.
However, it's important to note that this approach relies heavily on the availability of appropriate options in user-facing APIs. Without these options, validators may struggle to implement caching effectively, leading to potential inefficiencies and outdated information being used for decision-making. Therefore, enhancing user-facing APIs to support caching mechanisms would be crucial for optimizing validator performance and ensuring accurate, timely data is available for operations.
In several places, an internal function accepts a
block
parameter but the caller API function does not, some examples are:metagraph.py
:Metagraph.sync_nodes
weights.py
:_min_interval_to_set_weights
and_blocks_since_last_update
Reason:
Some validator setups cache the current block to avoid making too many requests to get it, and instead operate under a cached block for 12 second intervals(even if the block is outdated), but this is not possible if the option is not present in the user-facing APIs.
The text was updated successfully, but these errors were encountered: