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

Extract round related actions to method #9705

Merged
merged 12 commits into from
Dec 9, 2022

Conversation

molnard
Copy link
Collaborator

@molnard molnard commented Dec 7, 2022

Preparation for this #9681

Just moving the code and a small restructure.

Szpoti
Szpoti previously approved these changes Dec 7, 2022
@pull-request-size pull-request-size bot added size/L and removed size/M labels Dec 7, 2022
@molnard
Copy link
Collaborator Author

molnard commented Dec 8, 2022

@kiminuo @adamPetho can you take a quick look at this?

@@ -234,16 +232,50 @@ public async Task<CoinJoinResult> StartRoundAsync(IEnumerable<SmartCoin> smartCo
_ => throw new ArgumentOutOfRangeException()
};
roundState.LogInfo(msg);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So if ProceedWithRoundAsync throws an exception that is caught by catch (UnexpectedRoundPhaseException ex) when (ex.Actual == Phase.Ended), then here we can still log that the round finished with broadcasting a transaction, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whatever the coordinator indicates with EndRoundState.

adamPetho
adamPetho previously approved these changes Dec 8, 2022
Copy link
Collaborator

@adamPetho adamPetho left a comment

Choose a reason for hiding this comment

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

tACK on testnet, but please resolve Kimi's suggestions.

molnard and others added 2 commits December 8, 2022 14:15
Co-authored-by: Kimi <58662979+kiminuo@users.noreply.github.com>
@kiminuo
Copy link
Collaborator

kiminuo commented Dec 8, 2022

LGTM now

@molnard
Copy link
Collaborator Author

molnard commented Dec 9, 2022

Tested this during the night. It works reliably.

@molnard molnard merged commit 1b9ce76 into WalletWasabi:master Dec 9, 2022
@molnard molnard deleted the extractround branch December 9, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants