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

server: start htlcswitch early in the pipeline
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2022-02-24 15:32:46 -08:00
commit 10fba3d859
20 files changed
+34 -22

No files matched your search

+1
View File
@@ -132,6 +132,7 @@ func NewOnionProcessor(router *sphinx.Router) *OnionProcessor {
// Start spins up the onion processor's sphinx router.
func (p *OnionProcessor) Start() error {
log.Info("Onion processor starting")
return p.router.Start()
}
+1 -1
View File
@@ -81,7 +81,7 @@ func NewHtlcNotifier(now func() time.Time) *HtlcNotifier {
func (h *HtlcNotifier) Start() error {
var err error
h.started.Do(func() {
log.Trace("HtlcNotifier starting")
log.Info("HtlcNotifier starting")
err = h.ntfnServer.Start()
})
return err
+1 -1
View File
@@ -1846,7 +1846,7 @@ func (s *Switch) Start() error {
return errors.New("htlc switch already started")
}
log.Infof("Starting HTLC Switch")
log.Infof("HTLC Switch starting")
blockEpochStream, err := s.cfg.Notifier.RegisterBlockEpochNtfn(nil)
if err != nil {