Versions in this module Expand all Collapse all v0 v0.1.9 Jan 17, 2023 Changes in this version + const DefaultPeerPort + const DefaultReadTimeout + const DefaultWriteTimeout + var DefaultListenAddr = fmt.Sprintf(":%d", DefaultPeerPort) + var ErrNoListeners = errors.New("no listening ports were specified") + var ErrNoNetwork = errors.New("no network specified, must be tor or clearnet") + func DisableLog() + func UseLogger(logger btclog.Logger) + type AddressNormalizer func(addrs []string, defaultPort string, ...) ([]net.Addr, error) + type Conf struct + RawExternalIPs []string + RawListeners []string + ReadTimeout time.Duration + WriteTimeout time.Duration + func (c *Conf) Apply(cfg *Config, normalizer AddressNormalizer) (*Config, error) + type Config struct + BlockFetcher lookout.BlockFetcher + ChainHash chainhash.Hash + DB DB + EpochRegistrar lookout.EpochRegistrar + ExternalIPs []net.Addr + ListenAddrs []net.Addr + Net tor.Net + NewAddress func() (btcutil.Address, error) + NodeKeyECDH keychain.SingleKeyECDH + PublishTx func(*wire.MsgTx, string) error + ReadTimeout time.Duration + TorController *tor.Controller + Type tor.OnionType + WatchtowerKeyPath string + WriteTimeout time.Duration + type DB interface + type Standalone struct + func New(cfg *Config) (*Standalone, error) + func (w *Standalone) ExternalIPs() []net.Addr + func (w *Standalone) ListeningAddrs() []net.Addr + func (w *Standalone) PubKey() *btcec.PublicKey + func (w *Standalone) Start() error + func (w *Standalone) Stop() error