Skip to content

Conversation

@echevrier
Copy link
Contributor

Filter: vesting, balances and treasury call, when node compiled with --features mainnet-launch

@echevrier echevrier requested review from brenzi and clangenb October 5, 2021 12:56
@echevrier echevrier linked an issue Oct 5, 2021 that may be closed by this pull request
pub struct BaseFilter;
impl Contains<Call> for BaseFilter {
fn contains(call: &Call) -> bool {
!matches!(call, Call::Balances(..) | Call::Treasury(..) | Call::Vesting(_))
Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to also filter Teerex, Scheduler, Proxy, Multisig

impl frame_system::Config for Runtime {
/// The basic call filter to use in dispatchable.
#[cfg(not(feature = "mainnet-launch"))]
type BaseCallFilter = frame_support::traits::Everything;
Copy link
Collaborator

Choose a reason for hiding this comment

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

while we're on it, we could solve integritee-network/pallet-teerex#46 too

In that sense, there will only be BaseFilter here and the compiler flag would rather be inside the BaseFilter definition

Copy link
Collaborator

Choose a reason for hiding this comment

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

and please make a comment in the code why we filter it: integritee-network/pallet-teerex#7

echevrier added 4 commits October 7, 2021 09:13
Add a compiler flag mainnet-launch to block calls only for the standalone mainnet
Suppress all Vesting calls
…ig calls and filter shielding/unshielding calls from teerex
@echevrier echevrier force-pushed the 35/dispatchable_filtering_mainnet branch from b38adcd to 9230fea Compare October 7, 2021 11:22
@brenzi brenzi self-requested a review October 7, 2021 11:44
Copy link
Collaborator

@brenzi brenzi left a comment

Choose a reason for hiding this comment

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

filtering unshield/shield will break our M6 CI, so please remove that filter again

@brenzi brenzi merged commit ddf01ec into master Oct 7, 2021
@clangenb clangenb deleted the 35/dispatchable_filtering_mainnet branch November 3, 2021 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add dispatchable filtering for PoA mainnet launch

3 participants