-
Notifications
You must be signed in to change notification settings - Fork 11
Add dispatchable filtering for PoA mainnet launch #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
runtime/src/lib.rs
Outdated
| pub struct BaseFilter; | ||
| impl Contains<Call> for BaseFilter { | ||
| fn contains(call: &Call) -> bool { | ||
| !matches!(call, Call::Balances(..) | Call::Treasury(..) | Call::Vesting(_)) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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
b38adcd to
9230fea
Compare
brenzi
left a comment
There was a problem hiding this 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
Filter: vesting, balances and treasury call, when node compiled with
--features mainnet-launch