Skip to content

Commit

Permalink
Merge pull request #5380 from molnard/backport_v12_5_digfix
Browse files Browse the repository at this point in the history
Do not delete digest file when packaging
  • Loading branch information
molnard committed Mar 16, 2021
2 parents 816c19b + 38fb311 commit 890391b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WalletWasabi.Packager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private static void Publish()

foreach (var file in torFolder.EnumerateFiles())
{
if (!file.Name.Contains("data", StringComparison.OrdinalIgnoreCase) && !file.Name.Contains(toNotRemove, StringComparison.OrdinalIgnoreCase))
if (!file.Name.Contains("data", StringComparison.OrdinalIgnoreCase) && !file.Name.Contains("digest", StringComparison.OrdinalIgnoreCase) && !file.Name.Contains(toNotRemove, StringComparison.OrdinalIgnoreCase))
{
File.Delete(file.FullName);
}
Expand Down
10 changes: 5 additions & 5 deletions WalletWasabi.Tests/UnitTests/Hwi/HwiProcessBridgeMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public Task<(string response, int exitCode)> SendCommandAsync(string arguments,
}
else if (Model == HardwareWalletModels.Ledger_Nano_X)
{
response = "{\"error\": \"The Ledger Nano X does not support wiping via software\", \"code\": -9}\r\n";
response = "{\"error\": \"The Ledger Nano X does not support software setup\", \"code\": -9}\r\n";
}
}
else if (CompareArguments(arguments, $"{devicePathAndTypeArgumentString} --interactive setup"))
Expand All @@ -145,7 +145,7 @@ public Task<(string response, int exitCode)> SendCommandAsync(string arguments,
}
else if (Model == HardwareWalletModels.Ledger_Nano_X)
{
response = "{\"error\": \"The Ledger Nano X does not support wiping via software\", \"code\": -9}\r\n";
response = "{\"error\": \"The Ledger Nano X does not support software setup\", \"code\": -9}\r\n";
}
}
else if (CompareArguments(arguments, $"{devicePathAndTypeArgumentString} --interactive restore"))
Expand All @@ -164,7 +164,7 @@ public Task<(string response, int exitCode)> SendCommandAsync(string arguments,
}
else if (Model == HardwareWalletModels.Ledger_Nano_X)
{
response = "{\"error\": \"The Ledger Nano X does not support wiping via software\", \"code\": -9}\r\n";
response = "{\"error\": \"The Ledger Nano X does not support restoring via software\", \"code\": -9}\r\n";
}
}
else if (CompareArguments(arguments, $"{devicePathAndTypeArgumentString} promptpin"))
Expand All @@ -183,7 +183,7 @@ public Task<(string response, int exitCode)> SendCommandAsync(string arguments,
}
else if (Model == HardwareWalletModels.Ledger_Nano_X)
{
response = "{\"error\": \"The Ledger Nano X does not support wiping via software\", \"code\": -9}\r\n";
response = "{\"error\": \"The Ledger Nano X does not need a PIN sent from the host\", \"code\": -9}\r\n";
}
}
else if (CompareArguments(arguments, $"{devicePathAndTypeArgumentString} sendpin", true))
Expand All @@ -202,7 +202,7 @@ public Task<(string response, int exitCode)> SendCommandAsync(string arguments,
}
else if (Model == HardwareWalletModels.Ledger_Nano_X)
{
response = "{\"error\": \"The Ledger Nano X does not support wiping via software\", \"code\": -9}\r\n";
response = "{\"error\": \"The Ledger Nano X does not need a PIN sent from the host\", \"code\": -9}\r\n";
}
}
else if (CompareGetXbpubArguments(arguments, out string xpub))
Expand Down

0 comments on commit 890391b

Please sign in to comment.