Merge pull request #6214 from yyforyongyu/server-start-order

server: start htlcswitch early in the pipeline
This commit is contained in:
Olaoluwa Osuntokun
2022-02-24 15:32:46 -08:00
committed by GitHub
20 changed files with 34 additions and 22 deletions

View File

@@ -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 {

View File

@@ -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.

View File

@@ -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.