package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
DisableLog disables all logging output.
IsTestnet tests if the givern params correspond to a testnet parameter configuration.
NewChainControl attempts to create a ChainControl instance according to the parameters in the passed configuration.
NewPartialChainControl creates a new partial chain control that contains all the parts that can be purely constructed from the passed in global configuration and doesn't need any wallet instance yet.
UseLogger uses a specified Logger to output package logging info.
# Constants
DefaultBitcoinBaseFeeMSat is the default forwarding base fee.
DefaultBitcoinFeeRate is the default forwarding fee rate.
DefaultBitcoinMinHTLCInMSat is the default smallest value htlc this node will accept.
DefaultBitcoinMinHTLCOutMSat is the default minimum htlc value that we require for sending out htlcs.
DefaultBitcoinStaticFeePerKW is the fee rate of 50 sat/vbyte expressed in sat/kw.
DefaultBitcoinStaticMinRelayFeeRate is the min relay fee used for static estimators.
DefaultBitcoinTimeLockDelta is the default forwarding time lock delta.
DefaultMinOutboundPeers is the min number of connected outbound peers the chain backend should have to maintain a healthy connection to the network.
Subsystem defines the logging code for this subsystem.
# Variables
BitcoinMainnetGenesis is the genesis hash of Bitcoin's main chain.
BitcoinMainNetParams contains parameters specific to the current Bitcoin mainnet.
BitcoinRegTestNetParams contains parameters specific to a local bitcoin regtest network.
BitcoinSignetGenesis is the genesis hash of Bitcoin's signet chain.
BitcoinSigNetParams contains parameters specific to the signet test network.
BitcoinSimNetParams contains parameters specific to the simulation test network.
BitcoinTestnetGenesis is the genesis hash of Bitcoin's testnet chain.
BitcoinTestNetParams contains parameters specific to the 3rd version of the test network.
ChainDNSSeeds is a map of a chain's hash to the set of DNS seeds that will be use to bootstrap peers upon first startup.
# Structs
BitcoinNetParams couples the p2p parameters of a network with the corresponding RPC port of a daemon running on the particular network.
ChainControl couples the three primary interfaces lnd utilizes for a particular chain together.
Config houses necessary fields that a chainControl instance needs to function.
NoChainBackend is a mock implementation of the following interfaces: - chainview.FilteredChainView - chainntnfs.ChainNotifier - chainfee.Estimator.
NoChainSource is a mock implementation of chain.Interface.
PartialChainControl contains all the primary interfaces of the chain control that can be purely constructed from the global configuration.