Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + var ErrChanStatusManagerExiting = errors.New("chan status manager exiting") + var ErrEnableInactiveChan = errors.New(...) + var ErrInvalidTimeoutConstraints = errors.New(...) + func ChannelUpdateFromEdge(info *channeldb.ChannelEdgeInfo, policy *channeldb.ChannelEdgePolicy) (*lnwire.ChannelUpdate, error) + func DisableLog() + func ExtractChannelUpdate(ownerPubKey []byte, info *channeldb.ChannelEdgeInfo, ...) (*lnwire.ChannelUpdate, error) + func SignChannelUpdate(signer lnwallet.MessageSigner, pubKey *btcec.PublicKey, ...) error + func UseLogger(logger btclog.Logger) + type ChanStatus uint8 + const ChanStatusDisabled + const ChanStatusEnabled + const ChanStatusPendingDisabled + type ChanStatusConfig struct + ApplyChannelUpdate func(*lnwire.ChannelUpdate) error + ChanDisableTimeout time.Duration + ChanEnableTimeout time.Duration + ChanStatusSampleInterval time.Duration + DB DB + Graph ChannelGraph + IsChannelActive func(lnwire.ChannelID) bool + MessageSigner lnwallet.MessageSigner + OurPubKey *btcec.PublicKey + type ChanStatusManager struct + func NewChanStatusManager(cfg *ChanStatusConfig) (*ChanStatusManager, error) + func (m *ChanStatusManager) RequestDisable(outpoint wire.OutPoint) error + func (m *ChanStatusManager) RequestEnable(outpoint wire.OutPoint) error + func (m *ChanStatusManager) Start() error + func (m *ChanStatusManager) Stop() error + type ChannelGraph interface + FetchChannelEdgesByOutpoint func(*wire.OutPoint) (*channeldb.ChannelEdgeInfo, *channeldb.ChannelEdgePolicy, ...) + type ChannelState struct + SendDisableTime time.Time + Status ChanStatus + type ChannelUpdateModifier func(*lnwire.ChannelUpdate) + func ChannelUpdateSetDisable(disabled bool) ChannelUpdateModifier + type DB interface + FetchAllOpenChannels func() ([]*channeldb.OpenChannel, error) + type NodeSigner struct + func NewNodeSigner(key *btcec.PrivateKey) *NodeSigner + func (n *NodeSigner) SignCompact(msg []byte) ([]byte, error) + func (n *NodeSigner) SignDigestCompact(hash []byte) ([]byte, error) + func (n *NodeSigner) SignMessage(pubKey *btcec.PublicKey, msg []byte) (*btcec.Signature, error)