From 391b78069a25fdcc9e4c87aab1df6edc9840fdbb Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Mon, 30 Oct 2023 09:32:17 +0800 Subject: [PATCH] Clean --- node/src/chain_spec/crab.rs | 6 ------ node/src/chain_spec/darwinia.rs | 6 ------ node/src/rpc.rs | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/node/src/chain_spec/crab.rs b/node/src/chain_spec/crab.rs index 1452e18b3..280806c5c 100644 --- a/node/src/chain_spec/crab.rs +++ b/node/src/chain_spec/crab.rs @@ -182,7 +182,6 @@ pub fn genesis_config() -> ChainSpec { .iter() .map(|(k, _)| (array_bytes::hex_n_into_unchecked(k), 10_000 * UNIT)) .collect(), - ..Default::default() }, transaction_payment: Default::default(), assets: AssetsConfig { @@ -206,7 +205,6 @@ pub fn genesis_config() -> ChainSpec { .iter() .map(|(k, _)| (array_bytes::hex_n_into_unchecked(k), 1_000 * UNIT)) .collect(), - ..Default::default() }, session: SessionConfig { keys: collators @@ -219,7 +217,6 @@ pub fn genesis_config() -> ChainSpec { ) }) .collect(), - ..Default::default() }, aura: Default::default(), aura_ext: Default::default(), @@ -297,7 +294,6 @@ fn testnet_genesis( // Monetary stuff. balances: BalancesConfig { balances: endowed_accounts.iter().cloned().map(|k| (k, 100_000_000 * UNIT)).collect(), - ..Default::default() }, transaction_payment: Default::default(), assets: AssetsConfig { @@ -318,7 +314,6 @@ fn testnet_genesis( elapsed_time: 0, collator_count: collators.len() as _, collators: collators.iter().map(|(a, _)| (a.to_owned(), UNIT)).collect(), - ..Default::default() }, session: SessionConfig { keys: collators @@ -331,7 +326,6 @@ fn testnet_genesis( ) }) .collect(), - ..Default::default() }, aura: Default::default(), aura_ext: Default::default(), diff --git a/node/src/chain_spec/darwinia.rs b/node/src/chain_spec/darwinia.rs index cc30e3692..8ffaf69a7 100644 --- a/node/src/chain_spec/darwinia.rs +++ b/node/src/chain_spec/darwinia.rs @@ -178,7 +178,6 @@ pub fn genesis_config() -> ChainSpec { .iter() .map(|(k, _)| (array_bytes::hex_n_into_unchecked(k), 10_000 * UNIT)) .collect(), - ..Default::default() }, transaction_payment: Default::default(), assets: AssetsConfig { @@ -202,7 +201,6 @@ pub fn genesis_config() -> ChainSpec { .iter() .map(|(k, _)| (array_bytes::hex_n_into_unchecked(k), 1_000 * UNIT)) .collect(), - ..Default::default() }, session: SessionConfig { keys: collators @@ -215,7 +213,6 @@ pub fn genesis_config() -> ChainSpec { ) }) .collect(), - ..Default::default() }, aura: Default::default(), aura_ext: Default::default(), @@ -293,7 +290,6 @@ fn testnet_genesis( // Monetary stuff. balances: BalancesConfig { balances: endowed_accounts.iter().cloned().map(|k| (k, 100_000_000 * UNIT)).collect(), - ..Default::default() }, transaction_payment: Default::default(), assets: AssetsConfig { @@ -314,7 +310,6 @@ fn testnet_genesis( elapsed_time: 0, collator_count: collators.len() as _, collators: collators.iter().map(|(a, _)| (a.to_owned(), UNIT)).collect(), - ..Default::default() }, session: SessionConfig { keys: collators @@ -327,7 +322,6 @@ fn testnet_genesis( ) }) .collect(), - ..Default::default() }, aura: Default::default(), aura_ext: Default::default(), diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 8c007436e..db444c00c 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -186,7 +186,7 @@ where EthFilter::new( client.clone(), frontier_backend, - graph.clone(), + graph, filter_pool, 500_usize, // max stored filters max_past_logs,