Skip to content

Commit

Permalink
mm: Fix deposit balance check deadlock (decred#3066)
Browse files Browse the repository at this point in the history
Fixes a possible deadlock due to a nested RLock.
  • Loading branch information
martonp authored and buck54321 committed Nov 12, 2024
1 parent d5fc162 commit ee64749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/mm/exchange_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ func (u *unifiedExchangeAdaptor) updateDepositEvent(deposit *pendingDeposit) {
e := &MarketMakingEvent{
ID: deposit.eventLogID,
TimeStamp: deposit.timestamp,
BalanceEffects: combineBalanceEffects(deposit.balanceEffects()),
BalanceEffects: combineBalanceEffects(depositBalanceEffects(deposit.assetID, deposit.tx, deposit.cexConfirmed)),
Pending: !deposit.cexConfirmed || !deposit.feeConfirmed,
DepositEvent: &DepositEvent{
AssetID: deposit.assetID,
Expand Down

0 comments on commit ee64749

Please sign in to comment.