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

Support message relay limits override #2570

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

svyatonik
Copy link
Contributor

To estimate maximal number of messages and their total cumulative dispatch weight in messages delivery transaction we currently use the transaction payment runtime APIs. However on some chains there's no such pallet and it doesn't make any sense to add it there just for that. So let's add an option to configure bridge limits from hardcoded constants in the code. It maybe worth to add CLI options for that, but our CLI interface is already too complicated, so let's start with hardcoded constants and see if we need CLI options for that in the future.

relay_polkadot_bulletin_client::RuntimeCall::BridgePolkadotGrandpa(
relay_polkadot_bulletin_client::BridgePolkadotGrandpaCall::initialize { init_data },
)
type RuntimeCall = relay_polkadot_bulletin_client::RuntimeCall;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yet another change here: bulletin chain has the sudo pallet - let's use it to initialize bridge.

@svyatonik svyatonik merged commit 9e938b7 into master Sep 18, 2023
15 checks passed
@svyatonik svyatonik deleted the messages-relay-limits-override branch September 18, 2023 08:01
svyatonik added a commit that referenced this pull request Sep 18, 2023
* support message relay limits overrides for bridges

* spelling
svyatonik added a commit that referenced this pull request Sep 19, 2023
* polkadot-staging for v1.0.0

* Add polkadot bulletin chain primitives (#2542)

* add polkadot bulletin chain primitives

* also impl ChainWithMessages

* clippy

* instead of requiring sp_std::vec::Vec import when using runtime API generation macro, let's use full type path directly in macro (#2551)

* Polkadot Bulletin Chain client (#2552)

* relay-polkadot-bulletin-client

* generate Polkadot Bulletin Chain Runtime

* Add relays that will be used in Polkadot Bulletin <> Polkadot.BH bridge (#2556)

* added Polkadot.BH <> Polkadot Bulletin chain relays

* uncommented ED stuff

* complex PolkadotBulletin <> Polkadot.BH relay

* removed TODO

* spelling

* prepare refund extension infra to add refund extension for messages from standalone chain (#2558)

* prepare refund extension infra to add refund extension for messages from standalone chain

* spelling

* apply adapter to fix compilation

* clippy

* added POLKADOT_BULLETIN_CHAIN_ID constant

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain (#2566)

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain

* clippy

* fix compilation

* fix codec dependency (#2567)

* Support message relay limits override (#2570)

* support message relay limits overrides for bridges

* spelling

* export EXTRA_STORAGE_PROOF_SIZE for Polkadot Bulletin (#2572)
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
* polkadot-staging for v1.0.0

* Add polkadot bulletin chain primitives (paritytech#2542)

* add polkadot bulletin chain primitives

* also impl ChainWithMessages

* clippy

* instead of requiring sp_std::vec::Vec import when using runtime API generation macro, let's use full type path directly in macro (paritytech#2551)

* Polkadot Bulletin Chain client (paritytech#2552)

* relay-polkadot-bulletin-client

* generate Polkadot Bulletin Chain Runtime

* Add relays that will be used in Polkadot Bulletin <> Polkadot.BH bridge (paritytech#2556)

* added Polkadot.BH <> Polkadot Bulletin chain relays

* uncommented ED stuff

* complex PolkadotBulletin <> Polkadot.BH relay

* removed TODO

* spelling

* prepare refund extension infra to add refund extension for messages from standalone chain (paritytech#2558)

* prepare refund extension infra to add refund extension for messages from standalone chain

* spelling

* apply adapter to fix compilation

* clippy

* added POLKADOT_BULLETIN_CHAIN_ID constant

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain (paritytech#2566)

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain

* clippy

* fix compilation

* fix codec dependency (paritytech#2567)

* Support message relay limits override (paritytech#2570)

* support message relay limits overrides for bridges

* spelling

* export EXTRA_STORAGE_PROOF_SIZE for Polkadot Bulletin (paritytech#2572)
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
* polkadot-staging for v1.0.0

* Add polkadot bulletin chain primitives (paritytech#2542)

* add polkadot bulletin chain primitives

* also impl ChainWithMessages

* clippy

* instead of requiring sp_std::vec::Vec import when using runtime API generation macro, let's use full type path directly in macro (paritytech#2551)

* Polkadot Bulletin Chain client (paritytech#2552)

* relay-polkadot-bulletin-client

* generate Polkadot Bulletin Chain Runtime

* Add relays that will be used in Polkadot Bulletin <> Polkadot.BH bridge (paritytech#2556)

* added Polkadot.BH <> Polkadot Bulletin chain relays

* uncommented ED stuff

* complex PolkadotBulletin <> Polkadot.BH relay

* removed TODO

* spelling

* prepare refund extension infra to add refund extension for messages from standalone chain (paritytech#2558)

* prepare refund extension infra to add refund extension for messages from standalone chain

* spelling

* apply adapter to fix compilation

* clippy

* added POLKADOT_BULLETIN_CHAIN_ID constant

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain (paritytech#2566)

* RefundBridgedGrandpaMessages to refund transaction costs for messages coming to/from bridged standalone/relay chain

* clippy

* fix compilation

* fix codec dependency (paritytech#2567)

* Support message relay limits override (paritytech#2570)

* support message relay limits overrides for bridges

* spelling

* export EXTRA_STORAGE_PROOF_SIZE for Polkadot Bulletin (paritytech#2572)
bkontur pushed a commit that referenced this pull request May 7, 2024
* support message relay limits overrides for bridges

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

Successfully merging this pull request may close these issues.

None yet

2 participants