Skip to content

Commit f5c5438

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

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
@@ -532,9 +532,9 @@ func (m *Manager) TransitionDeposits(ctx context.Context, deposits []*Deposit,
532532
}
533533

534534
m.mu.Lock()
535-
defer m.mu.Unlock()
536-
537535
stateMachines, _ := m.toActiveDeposits(&outpoints)
536+
m.mu.Unlock()
537+
538538
if stateMachines == nil {
539539
return fmt.Errorf("deposits not found in active deposits")
540540
}

0 commit comments

Comments
 (0)