Skip to content

Commit 0e015d6

Browse files
committed
Fixed node template client side
1 parent 1702ac6 commit 0e015d6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

node/src/service.rs

+9-7
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub fn new_partial(
8888
executor,
8989
backend,
9090
genesis_block_builder,
91+
false,
9192
)?;
9293
let client = Arc::new(client);
9394

@@ -127,10 +128,10 @@ pub fn new_partial(
127128
let timestamp = sp_timestamp::InherentDataProvider::from_system_time();
128129

129130
let slot =
130-
sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
131-
*timestamp,
132-
slot_duration,
133-
);
131+
sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration(
132+
*timestamp,
133+
slot_duration,
134+
);
134135

135136
Ok((slot, timestamp))
136137
},
@@ -177,9 +178,9 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
177178
&config.chain_spec,
178179
);
179180

180-
net_config.add_notification_protocol(sc_consensus_grandpa::grandpa_peers_set_config(
181-
grandpa_protocol_name.clone(),
182-
));
181+
let (grandpa_protocol_config, grandpa_notification_service) =
182+
sc_consensus_grandpa::grandpa_peers_set_config(grandpa_protocol_name.clone());
183+
net_config.add_notification_protocol(grandpa_protocol_config);
183184

184185
let warp_sync = Arc::new(sc_consensus_grandpa::warp_proof::NetworkProvider::new(
185186
backend.clone(),
@@ -324,6 +325,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
324325
link: grandpa_link,
325326
network,
326327
sync: Arc::new(sync_service),
328+
notification_service: grandpa_notification_service,
327329
voting_rule: sc_consensus_grandpa::VotingRulesBuilder::default().build(),
328330
prometheus_registry,
329331
shared_voter_state: SharedVoterState::empty(),

0 commit comments

Comments
 (0)