Skip to content

Commit 2817723

Browse files
committed
Removed redundant code
1 parent a130011 commit 2817723

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

demo/node/src/service.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,13 @@ pub async fn new_full<Network: sc_network::NetworkBackend<Block, <Block as Block
441441
}
442442

443443
if enable_grandpa {
444-
// if the node isn't actively participating in consensus then it doesn't
445-
// need a keystore, regardless of which protocol we use below.
446-
let keystore = if role.is_authority() { Some(keystore_container.keystore()) } else { None };
447-
448444
let grandpa_config = sc_consensus_grandpa::Config {
449445
// FIXME #1578 make this available through chainspec
450446
gossip_duration: Duration::from_millis(333),
451447
justification_generation_period: GRANDPA_JUSTIFICATION_PERIOD,
452448
name: Some(name),
453449
observer_enabled: false,
454-
keystore,
450+
keystore: keystore_opt,
455451
local_role: role,
456452
telemetry: telemetry.as_ref().map(|x| x.handle()),
457453
protocol_name: grandpa_protocol_name,

0 commit comments

Comments
 (0)