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

Improve on the return values of innerTournamentWinner call #7

Open
stephenctw opened this issue Dec 22, 2023 · 0 comments
Open

Improve on the return values of innerTournamentWinner call #7

stephenctw opened this issue Dec 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@stephenctw
Copy link
Contributor

The call should be able to reflect the state of the tournament correctly, being one of the three below:

  1. Tournament not finished.
  2. Tournament finished, no one won (parent can delete parent match).
  3. Tournament finished, here's the winner.
@return (bool, Tree.Node, Tree.Node)

The return values could be:

  1. (false, zeroNode, zeroNode)
  2. (true, zeroNode, zeroNode)
  3. (true, winnerParentCommitment, winnerCommitment)

Currently we handled (1) and (3), missing (2). @GCdePaula do you think the return values of (2) above makes sense?

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

No branches or pull requests

1 participant