Make HdPubKey serializable property in SmartCoin
MODIFY
WalletWasabi/Models/SmartCoin.cs
WalletWasabi/Models/SmartCoin.cs
@@ -40,6 +40,7 @@ namespace WalletWasabi.Models
private bool _coinJoinInProgress;
private DateTimeOffset? _bannedUntilUtc;
private bool _spentAccordingToBackend;
+ private HdPubKey _hdPubKey;
private ISecret _secret;
@@ -50,8 +51,6 @@ namespace WalletWasabi.Models
private int _anonymitySet;
private string _history;
- private HdPubKey _hdPubKey;
-
#endregion Fields
#region Properties
@@ -260,6 +259,20 @@ namespace WalletWasabi.Models
}
}
+ [JsonProperty]
+ public HdPubKey HdPubKey
+ {
+ get => _hdPubKey;
+ private set
+ {
+ if (value != _hdPubKey)
+ {
+ _hdPubKey = value;
+ OnPropertyChanged(nameof(HdPubKey));
+ }
+ }
+ }
+
#endregion SerializableProperties
#region NonSerializableProperties
@@ -294,19 +307,6 @@ namespace WalletWasabi.Models
}
}
- public HdPubKey HdPubKey
- {
- get => _hdPubKey;
- private set
- {
- if (value != _hdPubKey)
- {
- _hdPubKey = value;
- OnPropertyChanged(nameof(HdPubKey));
- }
- }
- }
-
#endregion NonSerializableProperties
#region DependentProperties

Make HdPubKey serializable property in SmartCoin