Skip to content

Commit 9938441

Browse files
Cleanup
1 parent f509aaa commit 9938441

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Src/FinderOuter/Models/Permutation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Permutation(int size, uint* values)
1818
public readonly int max;
1919
private int index;
2020
private readonly uint* pt;
21-
21+
2222

2323
public uint GetValue() => pt[index];
2424

Src/FinderOuter/Services/InputService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ public static bool IsValidAddress(string address, bool ignoreP2SH, out byte[] ha
373373
hash = null;
374374
if (string.IsNullOrWhiteSpace(address))
375375
return false;
376-
if (address.StartsWith("3") && ignoreP2SH)
376+
if (address.StartsWith('3') && ignoreP2SH)
377377
return false;
378378

379-
if ((address.StartsWith("1") || address.StartsWith("3")) && Base58.IsValidWithChecksum(address))
379+
if ((address.StartsWith('1') || address.StartsWith('3')) && Base58.IsValidWithChecksum(address))
380380
{
381381
byte[] decoded = Base58.DecodeWithChecksum(address);
382382
if (decoded[0] != 0 || decoded.Length != 21)

Src/FinderOuter/ViewModels/KnowledgeBaseViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private static string BuildDescription(KB kb)
160160
$"b+akg+ abcdefghijkl+-={Environment.NewLine}" +
161161
$"CE2022 CEce012{Environment.NewLine}",
162162

163-
KB.ThreadCount =>
163+
KB.ThreadCount =>
164164
$"Settings can be used to define the number of threads that FinderOuter is going to use for parallelism." +
165165
$"{Environment.NewLine}" +
166166
$"This is useful for setting a lower number of threads to keep some CPU power open for other works. But this will " +

Src/Tests/Backend/Hashing/HashTestCaseHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static IEnumerable<object[]> GetRegularHashCases(string name)
2222
// Source of Test cases
2323
// * RIPEMD160:
2424
// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html
25-
25+
2626
// * SHA256 and SHA512:
2727
// Used .Net Framework 4.7.2 System.Security.Cryptography.SHA256Managed
2828

@@ -54,7 +54,7 @@ private static IEnumerable<object[]> GetNistShortLongCases(string sh_lo_va, stri
5454
JObject jObjs = Helper.ReadResources<JObject>(fileName);
5555
string jKey = sh_lo_va == "sh" ? "ShortMessage"
5656
: sh_lo_va == "lo" ? "LongMessage"
57-
: throw new ArgumentException();
57+
: throw new ArgumentException("invalid name");
5858

5959
foreach (JToken item in jObjs[jKey])
6060
{

Src/Tests/Models/PermutationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public unsafe void GetValueTest()
4343

4444
Assert.Equal(1u, p.GetValue());
4545
Assert.Equal(1u, p.GetValue()); // Repeated calls doesn't change value
46-
46+
4747
Assert.True(p.Increment());
4848
Assert.Equal(2u, p.GetValue());
4949

Src/Tests/Services/MnemonicSeviceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void SpaceByteCostTest()
1818
{
1919
byte[] expected = Encoding.UTF8.GetBytes(" ");
2020
Assert.Single(expected);
21-
Assert.Equal(expected[0], MnemonicSevice.SpaceByte);
21+
Assert.Equal(MnemonicSevice.SpaceByte, expected[0]);
2222
}
2323

2424
[Fact]

0 commit comments

Comments
 (0)