@@ -88,6 +88,7 @@ pub fn new_partial(
88
88
executor,
89
89
backend,
90
90
genesis_block_builder,
91
+ false ,
91
92
) ?;
92
93
let client = Arc :: new ( client) ;
93
94
@@ -127,10 +128,10 @@ pub fn new_partial(
127
128
let timestamp = sp_timestamp:: InherentDataProvider :: from_system_time ( ) ;
128
129
129
130
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
+ ) ;
134
135
135
136
Ok ( ( slot, timestamp) )
136
137
} ,
@@ -177,9 +178,9 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
177
178
& config. chain_spec ,
178
179
) ;
179
180
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 ) ;
183
184
184
185
let warp_sync = Arc :: new ( sc_consensus_grandpa:: warp_proof:: NetworkProvider :: new (
185
186
backend. clone ( ) ,
@@ -324,6 +325,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
324
325
link : grandpa_link,
325
326
network,
326
327
sync : Arc :: new ( sync_service) ,
328
+ notification_service : grandpa_notification_service,
327
329
voting_rule : sc_consensus_grandpa:: VotingRulesBuilder :: default ( ) . build ( ) ,
328
330
prometheus_registry,
329
331
shared_voter_state : SharedVoterState :: empty ( ) ,
0 commit comments