Remove preliminary test to know if the ledger can handle the store. If it can't signing will fail anyway.

This commit is contained in:
nicolas.dorier
2018-12-25 19:32:14 +09:00
parent 0eabb3c37c
commit af22d6a4e3
3 changed files with 26 additions and 55 deletions

View File

@@ -476,15 +476,6 @@ namespace BTCPayServer.Controllers
}
catch { throw new FormatException("Invalid value for subtract fees"); }
}
if (command == "getinfo")
{
var strategy = GetDirectDerivationStrategy(derivationScheme);
if (strategy == null || await hw.GetKeyPath(network, strategy, normalOperationTimeout.Token) == null)
{
throw new Exception($"This store is not configured to use this ledger");
}
result = new GetInfoResult();
}
if (command == "test")
{
result = await hw.Test(normalOperationTimeout.Token);