Skip to content

Commit 7873f2a

Browse files
A0-0000: Rename flag no_collection_of_extra_debugging_data to collect_validator_network_data. (#1904)
# Description "Cherry-pick" of a993574 . It's fine to rename param as this change will be released in the next major release. ## Type of change Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) - Breaking change (fix or feature that would cause existing functionality to not work as expected) # Testing Run locally command: ``` curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "alephNode_unstable_validatorNetworkInfo", "params": []}' http://localhost:9944/ {"jsonrpc":"2.0","result":{"5F4H97f7nQovyrbiq4ZetaaviNwThSVcFobcA5aGab6167dK":{"session":11,"network_level_address":"127.0.0.1:30346","validator_network_peer_id":"5G8NVxeEmShiyafdkTSEoGXXqh8beqWFiaZrMWUcaHm3Pnuf"},"5DiDShBWa1fQx6gLzpf3SFBhMinCoyvHM1BWjPNsmXS8hkrW":{"session":11,"network_level_address":"127.0.0.1:30347","validator_network_peer_id":"5EKkZAotyPkhR9LQ45ePK3Pz6MEHAVT9v4rSaDaGfQ262bJu"},"5GBNeWRhZc2jXu7D55rBimKYDk8PGk8itRYFTPfC8RJLKG5o":{"session":11,"network_level_address":"127.0.0.1:30344","validator_network_peer_id":"5CnYteF2HAqBEX54cCKptwoFR3yMFJAPyjfmRYwNTdzsV9tZ"},"5Dfis6XL8J2P6JHUnUtArnFWndn62SydeP8ee8sG2ky9nfm9":{"session":11,"network_level_address":"127.0.0.1:30345","validator_network_peer_id":"5G7D18QnYUZJzCkFyJZqdGei41mZ818KMpr7yCq8rmUtPWYW"}},"id":1}⏎ ```
1 parent 0e6fa63 commit 7873f2a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bin/node/src/aleph_cli.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ pub struct AlephCli {
5757

5858
/// Don't spend some extra time to collect more debugging data (e.g. validator network details).
5959
/// By default collecting is enabled, as the impact on performance is negligible, if any.
60-
#[clap(long, default_value_t = false)]
61-
no_collection_of_extra_debugging_data: bool,
60+
#[clap(long, default_value_t = true)]
61+
collect_validator_network_data: bool,
6262
}
6363

6464
impl AlephCli {
@@ -105,7 +105,7 @@ impl AlephCli {
105105
self.substrate_network_bit_rate
106106
}
107107

108-
pub fn no_collection_of_extra_debugging_data(&self) -> bool {
109-
self.no_collection_of_extra_debugging_data
108+
pub fn collect_validator_network_data(&self) -> bool {
109+
self.collect_validator_network_data
110110
}
111111
}

bin/node/src/service.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn get_aleph_runtime_vars(client: &Arc<FullClient>) -> AlephRuntimeVars {
212212

213213
fn get_validator_address_cache(aleph_config: &AlephCli) -> Option<ValidatorAddressCache> {
214214
aleph_config
215-
.no_collection_of_extra_debugging_data()
215+
.collect_validator_network_data()
216216
.then(ValidatorAddressCache::new)
217217
}
218218

0 commit comments

Comments
 (0)