-
Notifications
You must be signed in to change notification settings - Fork 490
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
[minor] Use static instances if available #9610
[minor] Use static instances if available #9610
Conversation
@@ -219,7 +219,7 @@ public ZeroCredentialsRequestData CreateRequestForZeroAmount() | |||
return credentials.Select(x => new Credential(x.Requested.Value, x.Requested.Randomness, x.Issued)); | |||
} | |||
|
|||
private Transcript BuildTransnscript(bool isNullRequest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
@@ -39,14 +39,14 @@ public static Coin CreateCoin(Key? key = null, Money? amount = null, ScriptPubKe | |||
public static Tuple<Coin, OwnershipProof> CreateCoinWithOwnershipProof(Key? key = null, Money? amount = null, uint256? roundId = null, ScriptPubKeyType scriptPubKeyType = ScriptPubKeyType.Segwit) | |||
{ | |||
key ??= new(); | |||
var coin = WabiSabiFactory.CreateCoin(key, amount, scriptPubKeyType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just simplifies the name
=> new(RoundParameters.Create(cfg, round.Parameters.Network, round.Parameters.MiningFeeRate, round.Parameters.CoordinationFeeRate, round.Parameters.MaxSuggestedAmount), | ||
blameOf: round, | ||
blameWhitelist: round.Alices.Select(x => x.Coin.Outpoint).ToHashSet(), | ||
InsecureRandom.Instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split into multiple lines (the line was too long)
* tpyo (see what I did?) * Use static instances
No description provided.