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

[examples] Adds RockPaperScissors example #715

Merged
merged 5 commits into from
Mar 12, 2022
Merged

[examples] Adds RockPaperScissors example #715

merged 5 commits into from
Mar 12, 2022

Conversation

damirka
Copy link
Contributor

@damirka damirka commented Mar 9, 2022

This PR is pretty self-explanatory. Adds an example of a game based on the commit-reveal scheme.

@damirka damirka added the move label Mar 9, 2022
@damirka damirka requested review from lxfind, awelc and sblackshear March 9, 2022 15:20
@damirka damirka self-assigned this Mar 9, 2022
@damirka damirka changed the title [Move] Adds RockPaperScissors example [Examples] Adds RockPaperScissors example Mar 9, 2022
@damirka damirka requested a review from Clay-Mysten March 9, 2022 16:02
@damirka damirka changed the title [Examples] Adds RockPaperScissors example [examples] Adds RockPaperScissors example Mar 9, 2022
awelc
awelc previously requested changes Mar 9, 2022
Copy link
Contributor

@awelc awelc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to see a test showing an example of how the game is played. Something similar to what is in Hero.move, using the TestScenario module.

@awelc
Copy link
Contributor

awelc commented Mar 9, 2022

It would be great to see a test showing an example of how the game is played. Something similar to what is in Hero.move, using the TestScenario module.

Never mind! :-) My page refreshed and I see the other file containing the test!

@damirka damirka requested a review from awelc March 9, 2022 19:14
@damirka
Copy link
Contributor Author

damirka commented Mar 12, 2022

@awelc can you please add your review? I’m unable to merge because you requested changes before.

@sblackshear
Copy link
Collaborator

@damirka: I think you should be able to do "dismiss review" (and this is 100% culturally acceptable)
image

I have done this for you to unblock, but let me know if there's a permissions issue that stops you from doing this for some reason.

@sblackshear sblackshear dismissed awelc’s stale review March 12, 2022 17:04

Concerns addressed

@damirka damirka merged commit 13c4e9f into MystenLabs:main Mar 12, 2022
@damirka damirka deleted the example-rock-paper-scissors-move branch March 12, 2022 17:33
mwtian pushed a commit that referenced this pull request Sep 12, 2022
Context:
The `BatchLoader` is establishing a primary->worker communication using a public address, which is adding latency and competing with outbound traffic.
The proper fix us to use the `BlockWaiter`.

The issue:
We would like a mitigation to be deployed and effective sooner.

The fix:
We inspect the worker addresses used by the `BatchLoader`, and rewrite their hostname to localhost when it matches the local primary.
mwtian pushed a commit to mwtian/sui that referenced this pull request Sep 29, 2022
Context:
The `BatchLoader` is establishing a primary->worker communication using a public address, which is adding latency and competing with outbound traffic.
The proper fix us to use the `BlockWaiter`.

The issue:
We would like a mitigation to be deployed and effective sooner.

The fix:
We inspect the worker addresses used by the `BatchLoader`, and rewrite their hostname to localhost when it matches the local primary.
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

Successfully merging this pull request may close these issues.

4 participants