Skip to content
Permalink
Browse files

Add label getters

  • Loading branch information...
nopara73 committed Nov 12, 2018
1 parent 555a297 commit e2324bda72f65379506925aa727d6ae572ffa74d
Showing with 10 additions and 0 deletions.
  1. +10 −0 WalletWasabi/Services/WalletService.cs
@@ -1038,6 +1038,16 @@ public async Task SendTransactionAsync(SmartTransaction transaction)
Logger.LogInfo<WalletService>($"Transaction is successfully broadcasted: {transaction.GetHash()}.");
}

public IEnumerable<string> GetAllLabels()
{
return Coins.Select(x => x.Label).Distinct();
}

public IEnumerable<string> GetNonSpecialLabels()
{
return Coins.Where(x => !x.Label.StartsWith("change of") && !x.Label.StartsWith("ZeroLink")).Select(x => x.Label).Distinct();
}

#region IDisposable Support

private volatile bool _disposedValue = false; // To detect redundant calls

0 comments on commit e2324bd

Please sign in to comment.
You can’t perform that action at this time.