mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Prevent error 500 if bad psbt
This commit is contained in:
@@ -141,7 +141,11 @@ namespace BTCPayServer.Controllers
|
||||
var derivationSchemeSettings = await GetDerivationSchemeSettings(walletId);
|
||||
if (derivationSchemeSettings == null)
|
||||
return NotFound();
|
||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||
try
|
||||
{
|
||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||
}
|
||||
catch { return BadRequest(); }
|
||||
return View(nameof(WalletPSBTReady), vm);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user