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 typos #1843

Merged
merged 2 commits into from Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion WalletWasabi.Backend/Startup.cs
Expand Up @@ -85,7 +85,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)

private void OnShutdown()
{
CleanupAsync().GetAwaiter().GetResult(); // This is needed, if async function is regisered then it won't wait until it finishes
CleanupAsync().GetAwaiter().GetResult(); // This is needed, if async function is registered then it won't wait until it finishes
}

private async Task CleanupAsync()
Expand Down
6 changes: 3 additions & 3 deletions WalletWasabi.Gui/Global.cs
Expand Up @@ -316,9 +316,9 @@ private async Task<AddressManagerBehavior> InitializeAddressManagerBehaviorAsync
{
AddressManager = await NBitcoinHelpers.LoadAddressManagerFromPeerFileAsync(AddressManagerFilePath);

// The most of the times we don't need to discover new peers. Instead, we can connect to
// some of those that we already discovered in the past. In this case we assume that we
// assume that discovering new peers could be necessary if out address manager has less
// Most of the times we don't need to discover new peers. Instead, we can connect to
// some of those that we already discovered in the past. In this case we assume that
// discovering new peers could be necessary if our address manager has less
// than 500 addresses. A 500 addresses could be okay because previously we tried with
// 200 and only one user reported he/she was not able to connect (there could be many others,
// of course).
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Models/ChaumianCoinJoin/CcjClientState.cs
Expand Up @@ -408,7 +408,7 @@ public void UpdateRoundsByStates(ConcurrentDictionary<TxoRef, IEnumerable<HdPubK
// Find the rounds those are not running anymore
// Put their coins back to the waiting list
// Remove them
// Find the rounds those needs to be updated
// Find the rounds those need to be updated
// Update them

IEnumerable<long> roundsToRemove = Rounds.Select(x => x.State.RoundId).Where(y => !allRunningRoundsStates.Select(z => z.RoundId).Contains(y));
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Services/CcjClient.cs
Expand Up @@ -299,7 +299,7 @@ private async Task TryProcessRoundStateAsync(long ongoingRoundId)

if (ongoingRound.State.Phase == CcjRoundPhase.ConnectionConfirmation)
{
if (!ongoingRound.Registration.IsPhaseActionsComleted(CcjRoundPhase.ConnectionConfirmation)) // If we did not already confirmed connection in connection confirmation phase confirm it.
if (!ongoingRound.Registration.IsPhaseActionsComleted(CcjRoundPhase.ConnectionConfirmation)) // If we did not already confirm connection in connection confirmation phase confirm it.
{
var res = await ongoingRound.Registration.AliceClient.PostConfirmationAsync();
if (res.activeOutputs.Any())
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Services/CcjCoordinator.cs
Expand Up @@ -332,7 +332,7 @@ private async void Round_StatusChangedAsync(object sender, CcjRoundStatus status
// But it cannot be larger than the current anonset of that round.
newAnonymitySet = Math.Min(newAnonymitySet, nextRound.AnonymitySet);

// Only change the anonymity set of the next round if new anonset doesnt equal and newanonset larger than 1.
// Only change the anonymity set of the next round if new anonset does not equal and newanonset larger than 1.
if (nextRound.AnonymitySet != newAnonymitySet && newAnonymitySet > 1)
{
nextRound.UpdateAnonymitySet(newAnonymitySet, syncLock: false);
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Services/WasabiSynchronizer.cs
Expand Up @@ -298,7 +298,7 @@ public void Start(TimeSpan requestInterval, TimeSpan feeQueryRequestInterval, in
{
// We are synced.
// Assert index state.
if (response.BestHeight > hashChain.TipHeight) // If the server's tip height is larger then ours, we're missing a filter, our index got corrupted.
if (response.BestHeight > hashChain.TipHeight) // If the server's tip height is larger than ours, we're missing a filter, our index got corrupted.
{
await BitcoinStore.IndexStore.RemoveAllImmmatureFiltersAsync(Cancel.Token, deleteAndCrashIfMature: true);
// If still bad delete filters and crash the software?
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/Stores/IndexStore.cs
Expand Up @@ -298,7 +298,7 @@ private async Task TryCommitToFileAsync(TimeSpan throttle, CancellationToken can
}
else
{
Interlocked.Exchange(ref _throttleId, 0); // So to notified the currently throttled threads that they don't have to run.
Interlocked.Exchange(ref _throttleId, 0); // So to notify the currently throttled threads that they don't have to run.
}

using (await MatureIndexFileManager.Mutex.LockAsync(cancel))
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi/TorSocks5/TorProcessManager.cs
Expand Up @@ -297,7 +297,7 @@ public void StartMonitor(TimeSpan torMisbehaviorCheckPeriod, TimeSpan checkIfRun
else
{
Logger.LogInfo<TorProcessManager>($"Tor did not work properly for {(int)torMisbehavedFor.TotalSeconds} seconds. Maybe it crashed. Attempting to start it...");
Start(true, dataDirToStartWith); // Try starting Tor, if does not work it'll be another issue.
Start(true, dataDirToStartWith); // Try starting Tor, if it does not work it'll be another issue.
await Task.Delay(14000, Stop.Token).ConfigureAwait(false);
}
}
Expand Down