Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "hrmp not found in runtimeConfig" error when trying to add hrmp channels #1673

Closed
sebastianmontero opened this issue Jan 11, 2024 · 7 comments

Comments

@sebastianmontero
Copy link

Issue Description

I'm trying to add hrmp channels as follows:

[[hrmp_channels]]
sender = 1000
recipient = 1836
max_capacity = 8
max_message_size = 512

But I get "hrmp not found in runtimeConfig" error when starting the network.

Steps to reproduce the issue

This is the file I'm using:

[settings]
timeout = 1000

[relaychain]
chain = "rococo-local"
default_command = "./bin/polkadot"

  [[relaychain.nodes]]
  name = "alice"
  validator = true
  ws_port = 9900
  extra_args = [ "-lparachain=debug" ]

  [[relaychain.nodes]]
  name = "bob"
  validator = true
  extra_args = [ "-lparachain=debug" ]

  [[relaychain.nodes]]
  name = "charlie"
  validator = true
  extra_args = [ "-lparachain=debug" ]

  [[relaychain.nodes]]
  name = "dave"
  validator = true
  extra_args = [ "-lparachain=debug" ]

[[parachains]]
id = 1000
add_to_genesis = true
cumulus_based = true
chain = "asset-hub-rococo-local"

  [[parachains.collators]]
  name = "statemine-collator01"
  command = "./bin/polkadot-parachain"
  ws_port = 9910
  args = ["--log=xcm=trace,pallet-assets=trace"]

  [[parachains.collators]]
  name = "statemine-collator02"
  command = "./bin/polkadot-parachain"
  ws_port = 9911
  args = ["--log=xcm=trace,pallet-assets=trace"]

[[parachains]]
id = 1836
add_to_genesis = true
cumulus_based = true
chain = "trappist-local"

  [[parachains.collators]]
  name = "trappist-collator01"
  command = "./target/release/trappist-node"
  ws_port = 9920
  args = ["--log=xcm=trace,pallet-assets=trace"]

  [[parachains.collators]]
  name = "trappist-collator02"
  command = "./target/release/trappist-node"
  ws_port = 9921
  args = ["--log=xcm=trace,pallet-assets=trace"]

[[parachains]]
id = 3000
add_to_genesis = true
cumulus_based = true
chain = "stout-local"

  [[parachains.collators]]
  name = "stout-collator01"
  command = "./target/release/trappist-node"
  ws_port = 9930
  args = ["--log=xcm=trace,pallet-assets=trace"]

  [[parachains.collators]]
  name = "stout-collator02"
  command = "./target/release/trappist-node"
  ws_port = 9931
  args = ["--log=xcm=trace,pallet-assets=trace"]

[types.Header]
number = "u64"
parent_hash = "Hash"
post_state = "Hash"

[[hrmp_channels]]
sender = 1000
recipient = 1836
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 1836
recipient = 1000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 1000
recipient = 3000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 3000
recipient = 1000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 1836
recipient = 3000
max_capacity = 8
max_message_size = 512

[[hrmp_channels]]
sender = 3000
recipient = 1836
max_capacity = 8
max_message_size = 512

Describe the results you received

I get "hrmp not found in runtimeConfig" error when starting the network.

Describe the results you expected

The network to start with the hrmp channels created

Zombienet version

1.3.79

Provider

Native

Provider version

Polkadot v1.5.0

Upstream Latest Release

No

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Screenshots

No response

@pepoviola
Copy link
Collaborator

Hi @sebastianmontero, thanks for reporting. This should works as expected in the latest version. (fixed in #1618). Closing now, please re-open if needed.
Thx!

@sebastianmontero
Copy link
Author

Thanks @pepoviola, I'v updated to the latest version, no it does not fail on startup and creates the channels, but I noticed that the parachains between which I create channels do not produce blocks, do you know what the issue might be?

@pepoviola
Copy link
Collaborator

Hi @sebastianmontero, I have to run the network to debug what the reason. Are you using master branch?
Thx!

@sebastianmontero
Copy link
Author

Hi @pepoviola, no I'm using 1.3.91

@sebastianmontero
Copy link
Author

Hi @pepoviola, have you been able to review the issue?

@pepoviola
Copy link
Collaborator

Hi @sebastianmontero, this is an issue in polkadot (paritytech/polkadot-sdk#1616) you can use the workaround provided in the pr.

Thx!

@sebastianmontero
Copy link
Author

Thanks @pepoviola!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants