2020-06-28 21:44:35 -05:00
|
|
|
using System;
|
2020-08-03 10:12:21 +02:00
|
|
|
using System.ComponentModel;
|
2018-10-26 23:07:39 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using NBXplorer.Models;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
|
|
{
|
|
|
|
public class RescanWalletModel
|
|
|
|
{
|
|
|
|
public bool IsServerAdmin { get; set; }
|
|
|
|
public bool IsSupportedByCurrency { get; set; }
|
|
|
|
public bool IsFullySync { get; set; }
|
2019-04-23 21:04:21 +09:00
|
|
|
public bool Ok => IsServerAdmin && IsSupportedByCurrency && IsFullySync;
|
2018-10-26 23:07:39 +09:00
|
|
|
|
|
|
|
[Range(1000, 10_000)]
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Batch size")]
|
2018-10-26 23:07:39 +09:00
|
|
|
public int BatchSize { get; set; } = 3000;
|
|
|
|
[Range(0, 10_000_000)]
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Starting index")]
|
2018-10-26 23:07:39 +09:00
|
|
|
public int StartingIndex { get; set; } = 0;
|
|
|
|
|
|
|
|
[Range(100, 100000)]
|
2020-08-03 10:12:21 +02:00
|
|
|
[DisplayName("Gap limit")]
|
2018-10-26 23:07:39 +09:00
|
|
|
public int GapLimit { get; set; } = 10000;
|
|
|
|
|
|
|
|
public int? Progress { get; set; }
|
|
|
|
public string PreviousError { get; set; }
|
|
|
|
public ScanUTXOProgress LastSuccess { get; internal set; }
|
|
|
|
public string TimeOfScan { get; internal set; }
|
|
|
|
public string RemainingTime { get; internal set; }
|
|
|
|
}
|
|
|
|
}
|