mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 19:41:21 +02:00
Merge pull request #6214 from yyforyongyu/server-start-order
server: start htlcswitch early in the pipeline
This commit is contained in:
@@ -206,14 +206,13 @@ func NewBreachArbiter(cfg *BreachConfig) *BreachArbiter {
|
||||
func (b *BreachArbiter) Start() error {
|
||||
var err error
|
||||
b.started.Do(func() {
|
||||
brarLog.Info("Breach arbiter starting")
|
||||
err = b.start()
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
func (b *BreachArbiter) start() error {
|
||||
brarLog.Tracef("Starting breach arbiter")
|
||||
|
||||
// Load all retributions currently persisted in the retribution store.
|
||||
var breachRetInfos map[wire.OutPoint]retributionInfo
|
||||
if err := b.cfg.Store.ForAll(func(ret *retributionInfo) error {
|
||||
|
@@ -487,7 +487,7 @@ func (c *ChainArbitrator) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Tracef("Starting ChainArbitrator")
|
||||
log.Info("ChainArbitrator starting")
|
||||
|
||||
// First, we'll fetch all the channels that are still open, in order to
|
||||
// collect them within our set of active contracts.
|
||||
|
@@ -241,7 +241,7 @@ func (u *UtxoNursery) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
utxnLog.Tracef("Starting UTXO nursery")
|
||||
utxnLog.Info("UTXO nursery starting")
|
||||
|
||||
// Retrieve the currently best known block. This is needed to have the
|
||||
// state machine catch up with the blocks we missed when we were down.
|
||||
|
Reference in New Issue
Block a user