From f7d28de54d811282257cebac12be6fbbc9f0892b Mon Sep 17 00:00:00 2001 From: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com> Date: Sun, 6 Jul 2025 12:32:11 +0300 Subject: [PATCH] `polkadot-omni-node`: pass timestamp inherent data for block import (#9102) # Description This should allow aura runtimes to check timestamp inherent data to sync/import blocks that include timestamp inherent data. Closes #8907 ## Integration Runtime developers can check timestamp inherent data while using `polkadot-omni-node-lib`/`polkadot-omni-node`/`polkadot-parachain` binaries. This change is backwards compatible and doesn't require runtimes to check the timestamp inherent, but they are able to do it now if needed. ## Review Notes N/A --------- Signed-off-by: Iulian Barbu Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit 436b4935b52562f79a83b6ecadeac7dcbc1c2367) --- cumulus/polkadot-omni-node/lib/src/nodes/aura.rs | 2 +- prdoc/pr_9102.prdoc | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 prdoc/pr_9102.prdoc diff --git a/cumulus/polkadot-omni-node/lib/src/nodes/aura.rs b/cumulus/polkadot-omni-node/lib/src/nodes/aura.rs index 6ad2a880230b3..4ca63576170dd 100644 --- a/cumulus/polkadot-omni-node/lib/src/nodes/aura.rs +++ b/cumulus/polkadot-omni-node/lib/src/nodes/aura.rs @@ -128,7 +128,7 @@ where let spawner = task_manager.spawn_essential_handle(); let relay_chain_verifier = - Box::new(RelayChainVerifier::new(client.clone(), |_, _| async { Ok(()) })); + Box::new(RelayChainVerifier::new(client.clone(), inherent_data_providers)); let equivocation_aura_verifier = EquivocationVerifier::<::Pair, _, _, _>::new( diff --git a/prdoc/pr_9102.prdoc b/prdoc/pr_9102.prdoc new file mode 100644 index 0000000000000..67d1c25abb5c2 --- /dev/null +++ b/prdoc/pr_9102.prdoc @@ -0,0 +1,12 @@ +title: '`polkadot-omni-node`: pass timestamp inherent data for block import' +doc: +- audience: [ Runtime Dev, Node Dev ] + description: |- + This should allow aura runtimes to check timestamp inherent data when syncing/importing blocks + that include timestamp inherent data. + + Runtime developers can check timestamp inherent data while using `polkadot-omni-node-lib`/`polkadot-omni-node`/`polkadot-parachain` binaries. + This change is backwards compatible and doesn't require runtimes to check the timestamp inherent, but they are able to do it now if needed. +crates: +- name: polkadot-omni-node-lib + bump: minor