mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
Error when broadcasting transactions weren't shown in the UI
This commit is contained in:
parent
f08f064bc6
commit
a0d0f1f98b
@ -399,7 +399,7 @@ namespace BTCPayServer.Controllers
|
|||||||
if (vm.InvalidPSBT || psbt is null)
|
if (vm.InvalidPSBT || psbt is null)
|
||||||
{
|
{
|
||||||
if (vm.InvalidPSBT)
|
if (vm.InvalidPSBT)
|
||||||
vm.GlobalError = "Invalid PSBT";
|
vm.Errors.Add("Invalid PSBT");
|
||||||
return View(nameof(WalletPSBT), vm);
|
return View(nameof(WalletPSBT), vm);
|
||||||
}
|
}
|
||||||
DerivationSchemeSettings derivationSchemeSettings = GetDerivationSchemeSettings(walletId);
|
DerivationSchemeSettings derivationSchemeSettings = GetDerivationSchemeSettings(walletId);
|
||||||
@ -503,7 +503,7 @@ namespace BTCPayServer.Controllers
|
|||||||
return await WalletPSBTReady(walletId, vm, "broadcast");
|
return await WalletPSBTReady(walletId, vm, "broadcast");
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.GlobalError = $"RPC Error while broadcasting: {broadcastResult.RPCCode} {broadcastResult.RPCCodeMessage} {broadcastResult.RPCMessage}";
|
vm.Errors.Add($"RPC Error while broadcasting: {broadcastResult.RPCCode} {broadcastResult.RPCCodeMessage} {broadcastResult.RPCMessage}");
|
||||||
return View(nameof(WalletPSBT), vm);
|
return View(nameof(WalletPSBT), vm);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -515,7 +515,7 @@ namespace BTCPayServer.Controllers
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
vm.GlobalError = "Error while broadcasting: " + ex.Message;
|
vm.Errors.Add("Error while broadcasting: " + ex.Message);
|
||||||
return View(nameof(WalletPSBT), vm);
|
return View(nameof(WalletPSBT), vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -539,7 +539,7 @@ namespace BTCPayServer.Controllers
|
|||||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||||
return View("WalletPSBTDecoded", vm);
|
return View("WalletPSBTDecoded", vm);
|
||||||
default:
|
default:
|
||||||
vm.GlobalError = "Unknown command";
|
vm.Errors.Add("Unknown command");
|
||||||
return View(nameof(WalletPSBT), vm);
|
return View(nameof(WalletPSBT), vm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ namespace BTCPayServer.Models.WalletViewModels
|
|||||||
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
|
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
|
||||||
public string SigningKey { get; set; }
|
public string SigningKey { get; set; }
|
||||||
public string SigningKeyPath { get; set; }
|
public string SigningKeyPath { get; set; }
|
||||||
public string GlobalError { get; set; }
|
|
||||||
|
|
||||||
public class DestinationViewModel
|
public class DestinationViewModel
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user