Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Companion #690 to bring to master safer template defaults #696

Closed
wants to merge 1 commit into from

Conversation

nuke-web3
Copy link
Contributor

* use safer defaults in template for sovereign paraobjects
* Nothing trait, fix XcmTeleportFilter
* rm unused traits, update rococo and template runtimes
* https://writingexplained.org/recognise-or-recognize-difference
* Override for AdvertisedXcmVersion default ->  to match all runtimes
* cargo +nightly fmt
@nuke-web3 nuke-web3 requested review from KiChjang and bkchr October 23, 2021 16:03
@nuke-web3 nuke-web3 changed the title Companion #690 to bring to main safer template defaults Companion #690 to bring to master safer template defaults Oct 23, 2021
@@ -516,13 +512,14 @@ impl pallet_xcm::Config for Runtime {
type XcmExecuteFilter = Everything;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type XcmExecuteFilter = Everything;
type XcmExecuteFilter = Nothing;

This will disable the execute dispatchable on the XCM pallet. Unsure if that's ok for templates, because this means local testing will require flipping this back to Everything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bummer... My goal is to make the template as safe as possible for production. This is unsafe to leave like this (without consideration) if used, correct?

Copy link
Contributor Author

@nuke-web3 nuke-web3 Oct 23, 2021

Choose a reason for hiding this comment

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

We can expose that you need to change this to enable for local testing in the cumulus tutorial and how-to guides, I think it would be best that way - so it forces you to consider the ramifications.

Copy link
Contributor Author

@nuke-web3 nuke-web3 Oct 23, 2021

Choose a reason for hiding this comment

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

Suggested change
type XcmExecuteFilter = Everything;
type XcmExecuteFilter = Nothing;
// ^ Disable dispatchable execute on the XCM pallet.
// Needs to be `Everything` for local testing.

also included here: https://github.com/substrate-developer-hub/substrate-parachain-template/pull/80

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah looks good, it's basically the same comment that you had on the PR you linked.

@the-right-joyce the-right-joyce added A4-companion A PR that should be considered alongside another (usually more comprehensive and detailed) PR. A6-backport Pull request is already reviewed well in another branch. and removed A7-companion labels Aug 12, 2022
@nuke-web3 nuke-web3 closed this Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A4-companion A PR that should be considered alongside another (usually more comprehensive and detailed) PR. A6-backport Pull request is already reviewed well in another branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants