Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + const BoltBackend + const ChannelDBName + const DecayedLogDbName + const DefaultBatchCommitInterval + const DefaultCltvInterceptDelta + const DefaultConfigFilename + const DefaultEtcdElectionPrefix + const DefaultFinalCltvRejectDelta + const DefaultHoldInvoiceExpiryDelta + const DefaultIncomingBroadcastDelta + const DefaultMaxPendingChannels + const DefaultOutgoingBroadcastDelta + const DefaultOutgoingCltvRejectDelta + const DefaultRPCGraphCacheDuration + const DefaultReadWorkers + const DefaultRemoteSignerRPCTimeout + const DefaultSigWorkers + const DefaultTxPollingJitter + const DefaultWriteWorkers + const DefaultZombieSweeperInterval + const EtcdBackend + const MacaroonDBName + const MaxAllowedFeeRate + const MaxFeeRateFloor + const MinChannelCacheSize + const MinRejectCacheSize + const NSChannelDB + const NSDecayedLogDB + const NSMacaroonDB + const NSNeutrinoDB + const NSTowerClientDB + const NSTowerServerDB + const NSWalletDB + const PostgresBackend + const SqliteBackend + const SqliteChainDBName + const SqliteChannelDBName + const SqliteNativeDBName + const SqliteNeutrinoDBName + const SqliteTowerDBName + const TowerClientDBName + const TowerServerDBName + const WalletDBName + var MaxMailboxDeliveryTimeout = 2 * time.Minute + var MinHealthCheckBackoff = time.Second + var MinHealthCheckInterval = time.Minute + var MinHealthCheckTimeout = time.Second + func CleanAndExpandPath(path string) string + func ClientAddressDialer(defaultPort string) func(context.Context, string) (net.Conn, error) + func EnforceSafeAuthentication(addrs []net.Addr, macaroonsActive, tlsActive bool) error + func GetPostgresConfigKVDB(cfg *sqldb.PostgresConfig) *postgres.Config + func GetSqliteConfigKVDB(cfg *sqldb.SqliteConfig) *sqlite.Config + func IsDevBuild() bool + func IsLoopback(host string) bool + func IsPrivate(addr net.Addr) bool + func IsUnix(addr net.Addr) bool + func ListenOnAddress(addr net.Addr) (net.Listener, error) + func NormalizeAddresses(addrs []string, defaultPort string, tcpResolver TCPResolver) ([]net.Addr, error) + func NormalizeNetwork(network string) string + func ParseAddressString(strAddress string, defaultPort string, tcpResolver TCPResolver) (net.Addr, error) + func ParseHexColor(colorStr string) (color.RGBA, error) + func ParseLNAddressPubkey(strAddress string) (*btcec.PublicKey, string, error) + func ParseLNAddressString(strAddress string, defaultPort string, tcpResolver TCPResolver) (*lnwire.NetAddress, error) + func TLSListenOnAddress(addr net.Addr, config *tls.Config) (net.Listener, error) + func Validate(validators ...Validator) error + type AutoPilot struct + Active bool + Allocation float64 + ConfTarget uint32 + Heuristic map[string]float64 + MaxChannelSize int64 + MaxChannels int + MinChannelSize int64 + MinConfs int32 + Private bool + type Bitcoind struct + BlockPollingInterval time.Duration + ConfigPath string + Dir string + EstimateMode string + PrunedNodeMaxPeers int + RPCCookie string + RPCHost string + RPCPass string + RPCPolling bool + RPCUser string + TxPollingInterval time.Duration + ZMQPubRawBlock string + ZMQPubRawTx string + ZMQReadDeadline time.Duration + type Btcd struct + Dir string + RPCCert string + RPCHost string + RPCPass string + RPCUser string + RawRPCCert string + type Caches struct + ChannelCacheSize int + RPCGraphCacheDuration time.Duration + RejectCacheSize int + func (c *Caches) Validate() error + type Chain struct + Active bool + BaseFee lnwire.MilliSatoshi + ChainDir string + DNSSeeds []string + DefaultNumChanConfs int + DefaultRemoteDelay int + FeeRate lnwire.MilliSatoshi + MainNet bool + MaxLocalDelay uint16 + MinHTLCIn lnwire.MilliSatoshi + MinHTLCOut lnwire.MilliSatoshi + Node string + RegTest bool + SigNet bool + SigNetChallenge string + SigNetSeedNode []string + SimNet bool + TestNet3 bool + TimeLockDelta uint32 + func (c *Chain) Validate(minTimeLockDelta uint32, minDelay uint16) error + type CheckConfig struct + Attempts int + Backoff time.Duration + Interval time.Duration + Timeout time.Duration + type Cluster struct + EnableLeaderElection bool + EtcdElectionPrefix string + ID string + LeaderElector string + LeaderSessionTTL int + func DefaultCluster() *Cluster + func (c *Cluster) MakeLeaderElector(electionCtx context.Context, db *DB) (cluster.LeaderElector, error) + func (c *Cluster) Validate() error + type DB struct + Backend string + BatchCommitInterval time.Duration + Bolt *kvdb.BoltConfig + Etcd *etcd.Config + NoGraphCache bool + NoRevLogAmtData bool + Postgres *sqldb.PostgresConfig + PruneRevocation bool + Sqlite *sqldb.SqliteConfig + UseNativeSQL bool + func DefaultDB() *DB + func (db *DB) GetBackends(ctx context.Context, chanDBPath, walletDBPath, towerServerDBPath string, ...) (*DatabaseBackends, error) + func (db *DB) Init(ctx context.Context, dbPath string) error + func (db *DB) Validate() error + type DatabaseBackends struct + ChanStateDB kvdb.Backend + CloseFuncs map[string]func() error + DecayedLogDB kvdb.Backend + GraphDB kvdb.Backend + HeightHintDB kvdb.Backend + MacaroonDB kvdb.Backend + NativeSQLStore *sqldb.BaseDB + Remote bool + TowerClientDB kvdb.Backend + TowerServerDB kvdb.Backend + WalletDB btcwallet.LoaderOption + type DevConfig struct + func (d *DevConfig) ChannelReadyWait() time.Duration + func (d *DevConfig) GetReservationTimeout() time.Duration + func (d *DevConfig) GetUnsafeDisconnect() bool + func (d *DevConfig) GetZombieSweeperInterval() time.Duration + type DiskCheckConfig struct + RequiredRemaining float64 + type ExperimentalProtocol struct + func (p ExperimentalProtocol) CustomFeatures() map[feature.Set][]lnwire.FeatureBit + func (p ExperimentalProtocol) CustomMessageOverrides() []uint16 + type Gossip struct + ChannelUpdateInterval time.Duration + MaxChannelUpdateBurst int + PinnedSyncers discovery.PinnedSyncers + PinnedSyncersRaw []string + SubBatchDelay time.Duration + func (g *Gossip) Parse() error + type HealthCheckConfig struct + ChainCheck *CheckConfig + DiskCheck *DiskCheckConfig + RemoteSigner *CheckConfig + TLSCheck *CheckConfig + TorConnection *CheckConfig + func (h *HealthCheckConfig) Validate() error + type Htlcswitch struct + MailboxDeliveryTimeout time.Duration + func (h *Htlcswitch) Validate() error + type Invoices struct + HoldExpiryDelta uint32 + type LegacyProtocol struct + func (l *LegacyProtocol) LegacyOnion() bool + func (l *LegacyProtocol) NoStaticRemoteKey() bool + type Neutrino struct + AddPeers []string + AssertFilterHeader string + BanDuration time.Duration + BanThreshold uint32 + BroadcastTimeout time.Duration + ConnectPeers []string + FeeURL string + MaxPeers int + PersistFilters bool + UserAgentName string + UserAgentVersion string + ValidateChannels bool + type Prometheus struct + func DefaultPrometheus() Prometheus + func (p *Prometheus) Enabled() bool + type ProtocolOptions struct + NoAnchors bool + NoOptionAnySegwit bool + NoScriptEnforcedLease bool + NoTimestampQueryOption bool + OptionScidAlias bool + OptionZeroConf bool + TaprootChans bool + WumboChans bool + func (l *ProtocolOptions) NoAnchorCommitments() bool + func (l *ProtocolOptions) NoAnySegwit() bool + func (l *ProtocolOptions) NoScriptEnforcementLease() bool + func (l *ProtocolOptions) NoTimestampsQuery() bool + func (l *ProtocolOptions) ScidAlias() bool + func (l *ProtocolOptions) Wumbo() bool + func (l *ProtocolOptions) ZeroConf() bool + type RPCMiddleware struct + Enable bool + InterceptTimeout time.Duration + Mandatory []string + func DefaultRPCMiddleware() *RPCMiddleware + func (r *RPCMiddleware) Validate() error + type RemoteSigner struct + Enable bool + MacaroonPath string + MigrateWatchOnly bool + RPCHost string + TLSCertPath string + Timeout time.Duration + func (r *RemoteSigner) Validate() error + type Routing struct + AssumeChannelValid bool + StrictZombiePruning bool + type Sweeper struct + BatchWindowDuration time.Duration + MaxFeeRate chainfee.SatPerVByte + func (s *Sweeper) Validate() error + type TCPResolver = func(network, addr string) (*net.TCPAddr, error) + type Tor struct + Active bool + Control string + DNS string + EncryptKey bool + Password string + PrivateKeyPath string + SOCKS string + SkipProxyForClearNetTargets bool + StreamIsolation bool + TargetIPAddress string + V2 bool + V3 bool + WatchtowerKeyPath string + type Validator interface + Validate func() error + type Watchtower struct + Active bool + TowerDir string + func DefaultWatchtowerCfg(defaultTowerDir string) *Watchtower + type Workers struct + Read int + Sig int + Write int + func (w *Workers) Validate() error + type WtClient struct + Active bool + MaxTasksInMemQueue uint64 + MaxUpdates uint16 + SessionCloseRange uint32 + SweepFeeRate uint64 + func DefaultWtClientCfg() *WtClient + func (c *WtClient) Validate() error