From 08cc16e4f3c40e552abd0e10926580673179f505 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 21 Jun 2024 18:43:58 +0200 Subject: [PATCH] chore: rm serde for network builder (#9020) --- crates/net/network/src/config.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/net/network/src/config.rs b/crates/net/network/src/config.rs index 993132f6c..151421b4a 100644 --- a/crates/net/network/src/config.rs +++ b/crates/net/network/src/config.rs @@ -137,7 +137,6 @@ where /// Builder for [`NetworkConfig`](struct.NetworkConfig.html). #[derive(Debug)] -#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct NetworkConfigBuilder { /// The node's secret key, from which the node's identity is derived. secret_key: SecretKey, @@ -146,7 +145,6 @@ pub struct NetworkConfigBuilder { /// How to set up discovery version 4. discovery_v4_builder: Option, /// How to set up discovery version 5. - #[serde(skip)] discovery_v5_builder: Option, /// All boot nodes to start network discovery with. boot_nodes: HashSet, @@ -159,24 +157,20 @@ pub struct NetworkConfigBuilder { /// How to configure the sessions manager sessions_config: Option, /// The network's chain spec - #[serde(skip)] chain_spec: Arc, /// The default mode of the network. network_mode: NetworkMode, /// The executor to use for spawning tasks. - #[serde(skip)] executor: Option>, /// Sets the hello message for the p2p handshake in `RLPx` hello_message: Option, /// The executor to use for spawning tasks. - #[serde(skip)] extra_protocols: RlpxSubProtocols, /// Head used to start set for the fork filter and status. head: Option, /// Whether tx gossip is disabled tx_gossip_disabled: bool, /// The block importer type - #[serde(skip)] block_import: Option>, /// How to instantiate transactions manager. transactions_manager_config: TransactionsManagerConfig,