mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
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:
@@ -476,15 +476,6 @@ namespace BTCPayServer.Controllers
|
|||||||
}
|
}
|
||||||
catch { throw new FormatException("Invalid value for subtract fees"); }
|
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")
|
if (command == "test")
|
||||||
{
|
{
|
||||||
result = await hw.Test(normalOperationTimeout.Token);
|
result = await hw.Test(normalOperationTimeout.Token);
|
||||||
|
|||||||
@@ -28,10 +28,6 @@
|
|||||||
<p id="hw-loading"><span class="fa fa-question-circle" style="color:orange"></span> <span>Detecting hardware wallet...</span></p>
|
<p id="hw-loading"><span class="fa fa-question-circle" style="color:orange"></span> <span>Detecting hardware wallet...</span></p>
|
||||||
<p id="hw-error" style="display:none;"><span class="fa fa-times-circle" style="color:red;"></span> <span class="hw-label">An error happened</span></p>
|
<p id="hw-error" style="display:none;"><span class="fa fa-times-circle" style="color:red;"></span> <span class="hw-label">An error happened</span></p>
|
||||||
<p id="hw-success" style="display:none;"><span class="fa fa-check-circle" style="color:green;"></span> <span class="hw-label">Detecting hardware wallet...</span></p>
|
<p id="hw-success" style="display:none;"><span class="fa fa-check-circle" style="color:green;"></span> <span class="hw-label">Detecting hardware wallet...</span></p>
|
||||||
|
|
||||||
<p id="check-loading" style="display:none;"><span class="fa fa-question-circle" style="color:orange"></span> <span class="check-label">Detecting hardware wallet...</span></p>
|
|
||||||
<p id="check-error" style="display:none;"><span class="fa fa-times-circle" style="color:red;"></span> <span class="check-label">An error happened</span></p>
|
|
||||||
<p id="check-success" style="display:none;"><span class="fa fa-check-circle" style="color:green;"></span> <span class="check-label">Detecting hardware wallet...</span></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -41,21 +41,7 @@
|
|||||||
var updateInfo = function () {
|
var updateInfo = function () {
|
||||||
if (!ledgerDetected)
|
if (!ledgerDetected)
|
||||||
return false;
|
return false;
|
||||||
$(".crypto-info").css("display", "none");
|
|
||||||
bridge.sendCommand("getinfo", "cryptoCode=" + cryptoCode)
|
|
||||||
.catch(function (reason) { Write('check', 'error', reason); })
|
|
||||||
.then(function (result) {
|
|
||||||
if (!result)
|
|
||||||
return;
|
|
||||||
if (result.error) {
|
|
||||||
Write('check', 'error', result.error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write('check', 'success', 'This store is configured to use your ledger');
|
|
||||||
$(".crypto-info").css("display", "block");
|
$(".crypto-info").css("display", "block");
|
||||||
|
|
||||||
|
|
||||||
var args = "";
|
var args = "";
|
||||||
args += "cryptoCode=" + cryptoCode;
|
args += "cryptoCode=" + cryptoCode;
|
||||||
args += "&destination=" + destination;
|
args += "&destination=" + destination;
|
||||||
@@ -87,8 +73,6 @@
|
|||||||
window.location.replace(successCallback + "?txid=" + result.transactionId);
|
window.location.replace(successCallback + "?txid=" + result.transactionId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bridge.isSupported()
|
bridge.isSupported()
|
||||||
|
|||||||
Reference in New Issue
Block a user