node
node copied to clipboard
Add ability to test CCTXs when paused
Describe the Issue A the CCTXs can be paused using an emergency mechanism. In some context, it would be great to test the CCTX functionality before it is enabled back to the end user.
Expected Outcome I see two solutions right now:
- Having an authorized message that can initiate a specific withdraw, or other interaction - most secure but not very flexible
- Defining an address in
crosschainparams likecctx-testerthat can process cctxs (has a sender) even when the functionality is paused. Might be less secure although the rate limiting for cctxs would decrease the attack vector on this side
Still very relevant and I think it can be implemented in a simple way unlike the original description:
- in CrosschainFlags we add a field for authorized address for actions
- this address can be set with a operation admin action
- we can set this address to the same value as our E2E tester address