Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,12 @@ impl_runtime_apis! {
ConsensusHook::can_build_upon(included_hash, slot)
}
}

impl cumulus_primitives_core::GetParachainInfo<Block> for Runtime {
fn parachain_id() -> ParaId {
ParachainInfo::parachain_id()
}
}
}

cumulus_pallet_parachain_system::register_validate_block! {
Expand Down
12 changes: 12 additions & 0 deletions prdoc/pr_9312.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: 'yap-runtime: fixes for `GetParachainInfo`'
doc:
- audience: Node Dev
description: |-
This fixes the YAP parachain runtimes in case you encounter a panic in the collator similar to https://github.com/paritytech/zombienet/issues/2050:
```
Failed to retrieve the parachain id
```
(which we do have zombienet-sdk tests for [here](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/client/transaction-pool/tests/zombienet/yap_test.rs))
crates:
- name: yet-another-parachain-runtime
bump: minor