mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +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);
|
var derivationSchemeSettings = await GetDerivationSchemeSettings(walletId);
|
||||||
if (derivationSchemeSettings == null)
|
if (derivationSchemeSettings == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
try
|
||||||
|
{
|
||||||
|
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||||
|
}
|
||||||
|
catch { return BadRequest(); }
|
||||||
return View(nameof(WalletPSBTReady), vm);
|
return View(nameof(WalletPSBTReady), vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user