Skip to content

Commit 1126cf7

Browse files
committed
Disable the interlace call on coretime-polkadot
1 parent e718c64 commit 1126cf7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

  • system-parachains/coretime/coretime-polkadot/src

system-parachains/coretime/coretime-polkadot/src/lib.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,22 @@ parameter_types! {
180180

181181
/// Filter out credit purchase calls until the credit system is implemented. Otherwise, users
182182
/// may have chance of locking their funds forever on purchased credits they cannot use.
183-
pub struct IsBrokerCreditPurchaseCall;
184-
impl Contains<RuntimeCall> for IsBrokerCreditPurchaseCall {
183+
/// Also filter the interlace call until the relay can support this fully.
184+
pub struct IsFilteredBrokerCall;
185+
impl Contains<RuntimeCall> for IsFilteredBrokerCall {
185186
fn contains(c: &RuntimeCall) -> bool {
186-
matches!(c, RuntimeCall::Broker(pallet_broker::Call::purchase_credit { .. }))
187+
matches!(
188+
c,
189+
RuntimeCall::Broker(pallet_broker::Call::purchase_credit { .. }) |
190+
RuntimeCall::Broker(pallet_broker::Call::interlace { .. })
191+
)
187192
}
188193
}
189194

190195
// Configure FRAME pallets to include in runtime.
191196
#[derive_impl(frame_system::config_preludes::ParaChainDefaultConfig as frame_system::DefaultConfig)]
192197
impl frame_system::Config for Runtime {
193-
type BaseCallFilter = EverythingBut<IsBrokerCreditPurchaseCall>;
198+
type BaseCallFilter = EverythingBut<IsFilteredBrokerCall>;
194199
/// The identifier used to distinguish between accounts.
195200
type AccountId = AccountId;
196201
/// The nonce type for storing how many extrinsics an account has signed.

0 commit comments

Comments
 (0)