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

Should the client or the server initiate the poll? #4

Open
domschiener opened this issue Oct 19, 2015 · 1 comment
Open

Should the client or the server initiate the poll? #4

domschiener opened this issue Oct 19, 2015 · 1 comment

Comments

@domschiener
Copy link
Owner

In the current system design, the client has to initiate the poll. The way it works is basically that the server is there to watch if a specific Ethereum address associated with a poll has a minimum balance, if the account matches that criteria (because the creator of the poll sent some Ether to the address), a new button will appear on the poll page requesting the user to make the poll live. This button basically initiates the poll contract on the Ethereum network.

My question is: Should we change it so that the server automatically initiates the transaction for the poll contract once a minimum balance criteria has been met, or should we keep the system as is, where the client initiates the contract? The only reason to go for the system where the server initiates the poll is to reduce the steps required for setting up the poll and automating the system. This way the poll creator will not have to worry about anything once he/she sent the Ether to the specified address.

What do you think?

@domschiener
Copy link
Owner Author

Additionally, when a user shares a poll that is not live yet, but the associated account has enough funds, the system will essentially create 2 contracts (if both users click on the "Start Poll" button at the same time). This is a potential issue that can be solved by having the server initiate the poll contract.

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

No branches or pull requests

1 participant