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

Fix all state management #2

Open
bigjosh opened this issue Dec 10, 2022 · 0 comments
Open

Fix all state management #2

bigjosh opened this issue Dec 10, 2022 · 0 comments

Comments

@bigjosh
Copy link
Owner

bigjosh commented Dec 10, 2022

Currently works, but it is a mess. Should be simple and more network efficient...

  1. Load page
  2. request a blocktemplate from the server
  3. start game
  4. we need pings to know that we will eventually get a "blocknotify" message (so people do not waste time playing after current block is already solved).
  5. if solution found, submit to server and show win page. Submit should probably be REST directly to submitblock?
  6. end game and close socket when we get a (single byte) "blocknotify" message.
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