mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-01 09:00:03 +01:00
* Refactor how we handle and validate LN ConnectionStrings * Migrate existing connection string to Internal Node if they are the same. Cleanup some obsolete fields * Fix typos, remove duplicated method * Add a InternalNodeRef to LightningSupportedPaymentMethod
28 lines
616 B
C#
28 lines
616 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class LightningNodeViewModel
|
|
{
|
|
[Display(Name = "Connection string")]
|
|
public string ConnectionString
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public string CryptoCode
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public bool CanUseInternalNode { get; set; }
|
|
|
|
public bool SkipPortTest { get; set; }
|
|
|
|
[Display(Name="Lightning enabled")]
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
public string StoreId { get; set; }
|
|
}
|
|
}
|