From 92c58eea7feb12bb037cbfa82c93c071d7559eb6 Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Thu, 23 Apr 2020 15:02:26 +0200 Subject: [PATCH] Fix: Sign with NBX option not present after decoding PSBT (#1497) --- BTCPayServer/Controllers/WalletsController.PSBT.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BTCPayServer/Controllers/WalletsController.PSBT.cs b/BTCPayServer/Controllers/WalletsController.PSBT.cs index 140641978..1982848b8 100644 --- a/BTCPayServer/Controllers/WalletsController.PSBT.cs +++ b/BTCPayServer/Controllers/WalletsController.PSBT.cs @@ -86,6 +86,9 @@ namespace BTCPayServer.Controllers return await WalletPSBT(walletId, vm); var network = NetworkProvider.GetNetwork(walletId.CryptoCode); vm.CryptoCode = network.CryptoCode; + vm.NBXSeedAvailable = await CanUseHotWallet() && !string.IsNullOrEmpty(await ExplorerClientProvider.GetExplorerClient(network) + .GetMetadataAsync(GetDerivationSchemeSettings(walletId).AccountDerivation, + WellknownMetadataKeys.Mnemonic)); var psbt = await vm.GetPSBT(network.NBitcoinNetwork); if (psbt == null) {