Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + const UnassignedConnID + var ErrChanAlreadyClosing = fmt.Errorf("channel shutdown already initiated") + var ErrChanCloseNotFinished = fmt.Errorf("close negotiation not finished") + var ErrChannelNotFound = fmt.Errorf("channel not found") + var ErrContractNotFound = fmt.Errorf("unable to locate contract") + var ErrFundingManagerShuttingDown = errors.New(...) + var ErrImmatureChannel = errors.New(...) + var ErrInvalidState = fmt.Errorf("invalid state") + var ErrPeerNotConnected = errors.New("peer is not connected") + var ErrServerShuttingDown = errors.New("server is shutting down") + func Main() error + type BreachConfig struct + CloseLink func(*wire.OutPoint, htlcswitch.ChannelCloseType) + ContractBreaches <-chan *ContractBreachEvent + DB *channeldb.DB + Estimator lnwallet.FeeEstimator + GenSweepScript func() ([]byte, error) + Notifier chainntnfs.ChainNotifier + PublishTransaction func(*wire.MsgTx) error + Signer input.Signer + Store RetributionStore + type ContractBreachEvent struct + BreachRetribution *lnwallet.BreachRetribution + ChanPoint wire.OutPoint + ProcessACK chan error + type NurseryConfig struct + ChainIO lnwallet.BlockChainIO + ConfDepth uint32 + FetchClosedChannel func(chanID *wire.OutPoint) (*channeldb.ChannelCloseSummary, error) + FetchClosedChannels func(pendingOnly bool) ([]*channeldb.ChannelCloseSummary, error) + Notifier chainntnfs.ChainNotifier + PublishTransaction func(*wire.MsgTx) error + Store NurseryStore + SweepInput func(input input.Input) (chan sweep.Result, error) + type NurseryStore interface + CribToKinder func(*babyOutput) error + FetchClass func(height uint32) ([]kidOutput, []babyOutput, error) + FetchPreschools func() ([]kidOutput, error) + ForChanOutputs func(*wire.OutPoint, func([]byte, []byte) error) error + GraduateKinder func(height uint32, output *kidOutput) error + HeightsBelowOrEqual func(height uint32) ([]uint32, error) + Incubate func([]kidOutput, []babyOutput) error + IsMatureChannel func(*wire.OutPoint) (bool, error) + ListChannels func() ([]wire.OutPoint, error) + PreschoolToKinder func(kid *kidOutput, lastGradHeight uint32) error + RemoveChannel func(*wire.OutPoint) error + type RetributionStore interface + Add func(retInfo *retributionInfo) error + Finalize func(chanPoint *wire.OutPoint, finalTx *wire.MsgTx) error + ForAll func(cb func(*retributionInfo) error) error + GetFinalizedTxn func(chanPoint *wire.OutPoint) (*wire.MsgTx, error) + IsBreached func(chanPoint *wire.OutPoint) (bool, error) + Remove func(key *wire.OutPoint) error + type WalletUnlockParams struct + Birthday time.Time + ChansToRestore walletunlocker.ChannelsToRecover + Password []byte + RecoveryWindow uint32 + Wallet *wallet.Wallet