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
Description:
Enhance the gateway deployment process to allow unconditional deployment, even in unanchored mode. Refactor related methods for clarity and enforce restrictions on operations requiring a parent subnet.
Tasks:
Unconditional Deployment
Add a constructor parameter (e.g., isAnchored) to define if the gateway is running anchored or unanchored.
Update gateway initialization to handle unanchored mode appropriately.
Refactor Pathways for Root Gateways
Extend is_root logic to also cover unanchored mode (e.g., subnet_id == null).
Introduce a helper method (isUnanchoredOrRoot()) to centralize this logic.
Rename gateway.enabled()
Rename gateway.enabled() to gateway.isAnchored() for improved clarity.
Update all references and document the change.
Restrict Parent-Dependent Methods
Prohibit operations requiring a parent (e.g., sending bottom-up messages) for unanchored or root gateways.
Add validation logic in relevant methods with clear revert messages.
Goal:
Allow flexible deployment of gateways while maintaining clear semantics and safeguarding operations that rely on anchored state.
Additional Notes:
Please ensure tests are updated or added for the new constructor behavior, pathway logic, and restricted methods.
The text was updated successfully, but these errors were encountered:
Description:
Enhance the gateway deployment process to allow unconditional deployment, even in unanchored mode. Refactor related methods for clarity and enforce restrictions on operations requiring a parent subnet.
Tasks:
Unconditional Deployment
isAnchored
) to define if the gateway is running anchored or unanchored.Refactor Pathways for Root Gateways
is_root
logic to also cover unanchored mode (e.g.,subnet_id == null
).isUnanchoredOrRoot()
) to centralize this logic.Rename
gateway.enabled()
gateway.enabled()
togateway.isAnchored()
for improved clarity.Restrict Parent-Dependent Methods
Goal:
Allow flexible deployment of gateways while maintaining clear semantics and safeguarding operations that rely on anchored state.
Additional Notes:
Please ensure tests are updated or added for the new constructor behavior, pathway logic, and restricted methods.
The text was updated successfully, but these errors were encountered: