staticaddr: non-concurrent deposit recovery

This commit is contained in:
Slyghtning 2025-03-25 13:38:24 +01:00
parent 612c7047f1
commit 8401ca58be
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -196,13 +196,10 @@ func (m *Manager) recoverDeposits(ctx context.Context) error {
}
// Send the OnRecover event to the state machine.
go func() {
err = fsm.SendEvent(ctx, OnRecover, nil)
if err != nil {
log.Errorf("Error sending OnStart event: %v",
err)
}
}()
err = fsm.SendEvent(ctx, OnRecover, nil)
if err != nil {
log.Errorf("Error sending OnStart event: %v", err)
}
m.mu.Lock()
m.activeDeposits[d.OutPoint] = fsm