mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +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)
|
||||
vm.GlobalError = "Invalid PSBT";
|
||||
vm.Errors.Add("Invalid PSBT");
|
||||
return View(nameof(WalletPSBT), vm);
|
||||
}
|
||||
DerivationSchemeSettings derivationSchemeSettings = GetDerivationSchemeSettings(walletId);
|
||||
@ -503,7 +503,7 @@ namespace BTCPayServer.Controllers
|
||||
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);
|
||||
}
|
||||
else
|
||||
@ -515,7 +515,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
vm.GlobalError = "Error while broadcasting: " + ex.Message;
|
||||
vm.Errors.Add("Error while broadcasting: " + ex.Message);
|
||||
return View(nameof(WalletPSBT), vm);
|
||||
}
|
||||
|
||||
@ -539,7 +539,7 @@ namespace BTCPayServer.Controllers
|
||||
await FetchTransactionDetails(derivationSchemeSettings, vm, network);
|
||||
return View("WalletPSBTDecoded", vm);
|
||||
default:
|
||||
vm.GlobalError = "Unknown command";
|
||||
vm.Errors.Add("Unknown command");
|
||||
return View(nameof(WalletPSBT), vm);
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ namespace BTCPayServer.Models.WalletViewModels
|
||||
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
|
||||
public string SigningKey { get; set; }
|
||||
public string SigningKeyPath { get; set; }
|
||||
public string GlobalError { get; set; }
|
||||
|
||||
public class DestinationViewModel
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user