Skip to content
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

SPEC: XAnchor Gov. System Edge Cases #74

Open
6 tasks
lazovicff opened this issue Dec 23, 2021 · 0 comments
Open
6 tasks

SPEC: XAnchor Gov. System Edge Cases #74

lazovicff opened this issue Dec 23, 2021 · 0 comments

Comments

@lazovicff
Copy link
Contributor

Overview

In XAnchor, there is a lot of Edge cases in the gov. system, I will try to cover most of them here so we can keep track or address them by writing first a failing test and then later on fix it.

For all of the following tasks/checks we are going to refer to Chain A as the source chain and Chain B as the target chain.

Checklist

  • Calling propose_to_link_anchor to create on-chain proposal on chain A could fail to link anchors if the proposal not passed.
  • After the proposal passed on chain A, the send_link_anchor_message gets called we send two messages:
    • save_link_proposal as a sibling parachain, which just puts the link proposal in the pending link, what would happen if the target tree on the target chain is already linked to something else?
    • handle_link_anchor_message as a sovereign account, to actually kick the proposal on the other chain, what if it get called by normal Signed account?
    • handle_link_anchor_message as a sovereign account, to actually kick the proposal on the other chain, what if the parachain sovereign account does not have the value as balance?
  • On chain B what happens if the proposal didn't pass? How the chain A could know about that? to remove that anchor from the PendingLinkedAnchors list?
@lazovicff lazovicff changed the title XAnchor Gov. System Edge Cases TASK: XAnchor Gov. System Edge Cases Dec 23, 2021
@dutterbutter dutterbutter changed the title TASK: XAnchor Gov. System Edge Cases SPEC: XAnchor Gov. System Edge Cases Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Not Started 🕧
Status: No status
Development

No branches or pull requests

2 participants