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

Solidity PLASMA exit queue #34

Open
snjax opened this issue Oct 23, 2018 · 0 comments
Open

Solidity PLASMA exit queue #34

snjax opened this issue Oct 23, 2018 · 0 comments

Comments

@snjax
Copy link
Contributor

snjax commented Oct 23, 2018

Plasma exit queue is the queue of tuples (uint hash, uint SFT, address next) ordered by SFT.

We need to construct the queue with last element border (tail element's SFT is infinity) and first element border (first element's SFT is zero) and the following methods:

function _insert(address posBefore, uint hash, uint SFT) private returns (bool);
function _remove(address posBefore, address posCurrent) private returns (bool);

The contract must check that the queue is still sorted after element insertion complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant