mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Companion for substrate#8079 (#2408)
* Companion for substrate#8079 * More changes * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -70,10 +70,7 @@ impl From<sc_network::ObservedRole> for ObservedRole {
|
||||
match role {
|
||||
sc_network::ObservedRole::Light => ObservedRole::Light,
|
||||
sc_network::ObservedRole::Authority => ObservedRole::Authority,
|
||||
sc_network::ObservedRole::Full
|
||||
| sc_network::ObservedRole::OurSentry
|
||||
| sc_network::ObservedRole::OurGuardedAuthority
|
||||
=> ObservedRole::Full,
|
||||
sc_network::ObservedRole::Full => ObservedRole::Full,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ pub fn new_full<RuntimeApi, Executor>(
|
||||
name: Some(name),
|
||||
observer_enabled: false,
|
||||
keystore: keystore_opt,
|
||||
is_authority: role.is_network_authority(),
|
||||
is_authority: role.is_authority(),
|
||||
};
|
||||
|
||||
let enable_grandpa = !disable_grandpa;
|
||||
|
||||
@@ -112,7 +112,7 @@ pub fn node_config(
|
||||
let base_path = BasePath::new_temp_dir().expect("could not create temporary directory");
|
||||
let root = base_path.path();
|
||||
let role = if is_validator {
|
||||
Role::Authority { sentry_nodes: Vec::new() }
|
||||
Role::Authority
|
||||
} else {
|
||||
Role::Full
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user