You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task involves the integration of tx-pause and safe-mode features for the Shibuya runtime (later deployment to Shiden and Astar).
These pallets enable fine-grained control over transaction execution and emergency maintenance functionalities, contributing to enhanced runtime stability and security.
Integration Steps
Install Dependencies
Add pallets to Shibuya runtime
Update frame_system BaseCallFilter
Define whitelisted calls for each pallet using dedicated structs
/// Calls that can bypass the tx-pause pallet./// We always allow system calls and timestamp since it is required for block productionpubstructTxPauseWhitelistedCalls;implContains<pallet_tx_pause::RuntimeCallNameOf<Runtime>>forTxPauseWhitelistedCalls{fncontains(full_name:&pallet_tx_pause::RuntimeCallNameOf<Runtime>) -> bool{matches!(full_name.0.as_slice(), b"System" | b"Timestamp" | b"TxPause")}}/// Calls that can bypass the safe-mode pallet.pubstructSafeModeWhitelistedCalls;implContains<RuntimeCall>forSafeModeWhitelistedCalls{fncontains(call:&RuntimeCall) -> bool{match call {RuntimeCall::System(_) | RuntimeCall::SafeMode(_) | RuntimeCall::TxPause(_) => true,
_ => false,}}}
Configure origins (e.g. pub type EmergencyAuthority = EitherOfDiverse<MoreThanHalfCouncil, EnsureRootOrAllTechnicalCommittee>; )
Hi.
I was directed here from morekudos.com.
I think I have solved this issue or at least hopefully contributed to solving this issue.
Here is a diff since I cannot push my branch to your repository. diff.txt
Please advise on next steps and or needed fixes. (There must be something missing)
Thank you
@sylvaincormier Thanks for your interest in contributing to this issue!
Could you please fork this repository and open a pull request from your fork main branch, including your suggested changes, to this repo main branch? This will allow me to start the review process 🙂
HI I was not aware I had to do this: Check list
added or updated unit tests
updated Astar official documentation
added OnRuntimeUpgrade hook for pthxrecompile revert code registration
added benchmarks & weights for any modified runtime logics.
Please cancel the request and I will do this
thx
Overview
This task involves the integration of
tx-pause
andsafe-mode
features for the Shibuya runtime (later deployment to Shiden and Astar).These pallets enable fine-grained control over transaction execution and emergency maintenance functionalities, contributing to enhanced runtime stability and security.
Integration Steps
BaseCallFilter
pub type EmergencyAuthority = EitherOfDiverse<MoreThanHalfCouncil, EnsureRootOrAllTechnicalCommittee>;
)Links
https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/safe-mode
https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/tx-pause
The text was updated successfully, but these errors were encountered: