From fa96deb1dea579affaada2d3fea27ee90bea063d Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 10 Aug 2021 12:07:13 +0900 Subject: [PATCH] Fix hotwallet migration --- BTCPayServer/Hosting/MigrationStartupTask.cs | 1 + BTCPayServer/Services/MigrationSettings.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/BTCPayServer/Hosting/MigrationStartupTask.cs b/BTCPayServer/Hosting/MigrationStartupTask.cs index de84b6448..fb02aef55 100644 --- a/BTCPayServer/Hosting/MigrationStartupTask.cs +++ b/BTCPayServer/Hosting/MigrationStartupTask.cs @@ -151,6 +151,7 @@ namespace BTCPayServer.Hosting { paymentMethod.IsHotWallet = paymentMethod.Source == "NBXplorer"; paymentMethod.Source = "NBXplorerGenerated"; + store.SetSupportedPaymentMethod(paymentMethod); } } await ctx.SaveChangesAsync(); diff --git a/BTCPayServer/Services/MigrationSettings.cs b/BTCPayServer/Services/MigrationSettings.cs index c8bec9c30..a66bb9e48 100644 --- a/BTCPayServer/Services/MigrationSettings.cs +++ b/BTCPayServer/Services/MigrationSettings.cs @@ -1,7 +1,10 @@ +using Newtonsoft.Json; + namespace BTCPayServer.Services { public class MigrationSettings { + [JsonProperty("MigrateHotwalletProperty2")] public bool MigrateHotwalletProperty { get; set; } public bool MigrateU2FToFIDO2{ get; set; } public bool UnreachableStoreCheck { get; set; }