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

TransactionStore: Cleanup #9676

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Dec 1, 2022

This fixes a few warnings and passes data via ctor which is a good thing.


private Dictionary<uint256, SmartTransaction> Transactions { get; } = new Dictionary<uint256, SmartTransaction>();
private object TransactionsLock { get; } = new object();
private Dictionary<uint256, SmartTransaction> Transactions { get; } = new();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need to repeat the types again.

Comment on lines +22 to +24
WorkFolderPath = Guard.NotNullOrEmptyOrWhitespace(nameof(workFolderPath), workFolderPath, trim: true);
Network = network;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

WorkFolderPath and Network are now passed via ctor instead being passed to the InitializeAsync method.

@kiminuo kiminuo marked this pull request as ready for review December 1, 2022 08:24
@kiminuo kiminuo requested a review from molnard December 1, 2022 08:30
Copy link
Collaborator

@molnard molnard left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

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

LGTM

@yahiheb yahiheb requested a review from turbolay December 2, 2022 14:54
@molnard molnard merged commit d676cda into WalletWasabi:master Dec 5, 2022
@kiminuo kiminuo deleted the feature/2022-12-01-TransactionStore-pass-args-via-ctor branch December 5, 2022 12:09
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

3 participants