git.delta.rocks / unique-network / refs/commits / 72b9f19daa15

difftreelog

fix frontier wants timestamp inherent now

Yaroslav Bolyukin2024-06-18parent: #efce288.patch.diff
in: master

1 file changed

modifiednode/cli/src/service.rsdiffbeforeafterboth
238 pub trait LookaheadApiDep: cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> {}238 pub trait LookaheadApiDep: cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> {}
239);239);
240240
241fn ethereum_parachain_inherent() -> ParachainInherentData {241fn ethereum_parachain_inherent() -> (sp_timestamp::InherentDataProvider, ParachainInherentData) {
242 let (relay_parent_storage_root, relay_chain_state) =242 let (relay_parent_storage_root, relay_chain_state) =
243 RelayStateSproofBuilder::default().into_state_root_and_proof();243 RelayStateSproofBuilder::default().into_state_root_and_proof();
244 let vfp = PersistedValidationData {244 let vfp = PersistedValidationData {
249 ..Default::default()249 ..Default::default()
250 };250 };
251251
252 (
253 sp_timestamp::InherentDataProvider::from_system_time(),
252 ParachainInherentData {254 ParachainInherentData {
253 validation_data: vfp,255 validation_data: vfp,
254 relay_chain_state,256 relay_chain_state,
255 downward_messages: Default::default(),257 downward_messages: Default::default(),
256 horizontal_messages: Default::default(),258 horizontal_messages: Default::default(),
257 }259 },
260 )
258}261}
259262
260/// Starts a `ServiceBuilder` for a full service.263/// Starts a `ServiceBuilder` for a full service.
557 overrides,560 overrides,
558 sync: sync_service.clone(),561 sync: sync_service.clone(),
559 pending_create_inherent_data_providers: |_, ()| async move {562 pending_create_inherent_data_providers: |_, ()| async move {
560 Ok((ethereum_parachain_inherent(),))563 Ok(ethereum_parachain_inherent())
561 },564 },
562 };565 };
563566
1147 sync: sync_service.clone(),1150 sync: sync_service.clone(),
1148 // We don't have any inherents except parachain built-ins, which we can't even extract from inside `run_aura`.1151 // We don't have any inherents except parachain built-ins, which we can't even extract from inside `run_aura`.
1149 pending_create_inherent_data_providers: |_, ()| async move {1152 pending_create_inherent_data_providers: |_, ()| async move {
1150 Ok((ethereum_parachain_inherent(),))1153 Ok(ethereum_parachain_inherent())
1151 },1154 },
1152 };1155 };
11531156