Skip to content

Commit d73bf96

Browse files
committed
staticaddr: don't lock active deposits across state transition
1 parent e704119 commit d73bf96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staticaddr/deposit/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ func (m *Manager) TransitionDeposits(ctx context.Context, deposits []*Deposit,
519519
}
520520

521521
m.mu.Lock()
522-
defer m.mu.Unlock()
523-
524522
stateMachines, _ := m.toActiveDeposits(&outpoints)
523+
m.mu.Unlock()
524+
525525
if stateMachines == nil {
526526
return fmt.Errorf("deposits not found in active deposits")
527527
}

0 commit comments

Comments
 (0)