Do not allow rescan of wallet which are not segwit

This commit is contained in:
nicolas.dorier
2018-11-04 14:59:28 +09:00
parent 9784a89112
commit b423b4eec1
6 changed files with 34 additions and 7 deletions

View File

@@ -12,7 +12,8 @@ namespace BTCPayServer.Models.WalletViewModels
public bool IsServerAdmin { get; set; }
public bool IsSupportedByCurrency { get; set; }
public bool IsFullySync { get; set; }
public bool Ok => IsServerAdmin && IsSupportedByCurrency && IsFullySync;
public bool IsSegwit { get; set; }
public bool Ok => IsServerAdmin && IsSupportedByCurrency && IsFullySync && IsSegwit;
[Range(1000, 10_000)]
public int BatchSize { get; set; } = 3000;