File tree Expand file tree Collapse file tree
system-parachains/coretime/coretime-polkadot/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ]
192197impl 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.
You can’t perform that action at this time.
0 commit comments