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

polkadot: remove call filters on registrar pallets #4093

Merged
merged 1 commit into from
Oct 18, 2021
Merged
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
9 changes: 6 additions & 3 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,12 @@ impl Contains<Call> for BaseFilter {
Call::Dmp(_) |
Call::Ump(_) |
Call::Hrmp(_) |
Call::Slots(_) => true,
// Disable paras registration, crowdloans, and auctions for now.
Call::Registrar(_) | Call::Auctions(_) | Call::Crowdloan(_) => false,
Call::Slots(_) |
Call::Registrar(_) |
Call::Auctions(_) |
Call::Crowdloan(_) => true,
// All pallets are allowed, but exhaustive match is defensive
// in the case of adding new pallets.
}
}
}
Expand Down