mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 23:38:10 -05:00
feat: add helper to disable discovery (#19478)
This commit is contained in:
@@ -427,6 +427,12 @@ impl<ChainSpec> NodeConfig<ChainSpec> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Disables all discovery services for the node.
|
||||
pub const fn with_disabled_discovery(mut self) -> Self {
|
||||
self.network.discovery.disable_discovery = true;
|
||||
self
|
||||
}
|
||||
|
||||
/// Effectively disables the RPC state cache by setting the cache sizes to `0`.
|
||||
///
|
||||
/// By setting the cache sizes to 0, caching of newly executed or fetched blocks will be
|
||||
|
||||
Reference in New Issue
Block a user