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

Finalized Exits #24

Closed
colin-axner opened this issue May 27, 2018 · 4 comments
Closed

Finalized Exits #24

colin-axner opened this issue May 27, 2018 · 4 comments
Labels
discussion For issues that need discussion

Comments

@colin-axner
Copy link
Member

We will need a some mechanism for taking into account utxo's that have been exited via the rootchain. This can probably be done with a finalizedExits mapping similar to the rootchain. This should be implemented where ever the geth full node is, and in the ante handler to check that the position being referenced has not been exited.

@AdityaSripal
Copy link
Member

Sidechain state should be updated to delete UTXO as soon as it detects a startExit.

Invariant:
Once UTXO has started exit, it will either succeed or the UTXO is invalid.

@liwei00wade
Copy link

Sidechain state should be updated to delete UTXO as soon as it detects a startExit.

how to delete UTXO ?

@AdityaSripal
Copy link
Member

Hello,

Again this is subject to change as we continue to iterate on the design. The sdk provides a BeginBlocker and EndBlocker function that can execute at each block.

We may use this to poll the rootchain smart contract for any startExits and delete the corresponding UTXO

@AdityaSripal AdityaSripal added the discussion For issues that need discussion label Jul 11, 2018
@colin-axner
Copy link
Member Author

Discussion in #36 resolves this issue. See the research repository for a design spec of Anchor (name for our version of peggy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion For issues that need discussion
Development

No branches or pull requests

3 participants