mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat(net): add function to set NetworkMode in builder (#2771)
This commit is contained in:
@@ -179,6 +179,12 @@ impl NetworkConfigBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the [`NetworkMode`].
|
||||
pub fn network_mode(mut self, network_mode: NetworkMode) -> Self {
|
||||
self.network_mode = network_mode;
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the highest synced block.
|
||||
///
|
||||
/// This is used to construct the appropriate [`ForkFilter`] and [`Status`] message.
|
||||
|
||||
Reference in New Issue
Block a user