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

Challenging both solutions not compatible with jackpot payout system #56

Open
hswick opened this issue Feb 23, 2018 · 0 comments
Open

Comments

@hswick
Copy link
Contributor

hswick commented Feb 23, 2018

Current jackpot payment adheres to split between solution0Challengers and solution1Challengers. This becomes an issue for 2 reasons

  1. Implementation: Verifier needs to get info to redeem payout, this would require two events to be fired. Possible (but also possibly unreliable, as events have strange behavior on solidity code underneath it).
  2. Incentives: If a verifier challenges both solutions than they receive double payout. This would create incentive to always challenge both solutions (thus negating the need for a forced error).

Possible solution is one array of challengers with a Challenge struct { intent, challengedSolution (1 or 0) }

But this would require filtering when verification game begins (who is participating in verification game or not?). This is bad because such a loop may run out of gas. Could make a solution around it (but would also be a bit complex and probably not elegant)

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