From a1d82b0e8b9eea341d73d724d6b7e6f5d69c2954 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 4 Dec 2019 21:52:48 +0900 Subject: [PATCH] fix bug if selecting segwit with vault --- BTCPayServer/Controllers/VaultController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/VaultController.cs b/BTCPayServer/Controllers/VaultController.cs index fd3ec0839..27e455752 100644 --- a/BTCPayServer/Controllers/VaultController.cs +++ b/BTCPayServer/Controllers/VaultController.cs @@ -241,7 +241,7 @@ namespace BTCPayServer.Controllers ScriptPubKeyType = ScriptPubKeyType.Segwit }); } - if (addressType == "segwitWrapped") + else if (addressType == "segwitWrapped") { keyPath = new KeyPath("49'").Derive(network.CoinType).Derive(accountNumber, true); xpub = await device.GetXPubAsync(keyPath);