feat(net): add function to set NetworkMode in builder (#2771)

This commit is contained in:
ArtificialPB
2023-05-21 14:10:03 +02:00
committed by GitHub
parent 238eea37cf
commit 0599d4bd2f

View File

@@ -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.