Skip to content

Commit

Permalink
feat(testnet): XCM ExecuteFilter=Everything, zombienet config improve (
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwht authored Sep 2, 2024
1 parent 1477539 commit 3f94a2e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
10 changes: 9 additions & 1 deletion networks/testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,12 @@ balances = [
[[parachains.collators]]
name = "pop"
rpc_port = 9944
args = ["-lruntime::contracts=debug", "-lpopapi::extension=debug"]
args = ["-lruntime::contracts=debug", "-lpopapi::extension=debug", "-lxcm=trace"]

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

[[parachains.collators]]
name = "asset-hub"
args = ["-lxcm=trace"]
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ try-runtime = [
"sp-runtime/try-runtime",
]

on-chain-release-build = ["pop-runtime-mainnet/on-chain-release-build"]
on-chain-release-build = [ "pop-runtime-mainnet/on-chain-release-build" ]
4 changes: 1 addition & 3 deletions runtime/devnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ impl pallet_xcm::Config for Runtime {
type UniversalLocation = UniversalLocation;
type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
type WeightInfo = pallet_xcm::TestWeightInfo;
type XcmExecuteFilter = Nothing;
// ^ Disable dispatchable execute on the XCM pallet.
// Needs to be `Everything` for local testing.
type XcmExecuteFilter = Everything;
type XcmExecutor = XcmExecutor<XcmConfig>;
// TODO: add filter to only allow reserve transfers of native to relay/asset hub
type XcmReserveTransferFilter = Everything;
Expand Down
4 changes: 1 addition & 3 deletions runtime/testnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ impl pallet_xcm::Config for Runtime {
type UniversalLocation = UniversalLocation;
type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
type WeightInfo = pallet_xcm::TestWeightInfo;
type XcmExecuteFilter = Nothing;
// ^ Disable dispatchable execute on the XCM pallet.
// Needs to be `Everything` for local testing.
type XcmExecuteFilter = Everything;
type XcmExecutor = XcmExecutor<XcmConfig>;
// TODO: add filter to only allow reserve transfers of native to relay/asset hub
type XcmReserveTransferFilter = Everything;
Expand Down

0 comments on commit 3f94a2e

Please sign in to comment.