Skip to content

Conversation

Syn-McJ
Copy link
Member

@Syn-McJ Syn-McJ commented Jan 31, 2025

Issue being fixed or feature implemented

Some improvements to avoid excessive locks

How Has This Been Tested?

QA

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Syn-McJ Syn-McJ requested a review from pankcuf January 31, 2025 04:39
@Syn-McJ Syn-McJ self-assigned this Jan 31, 2025
@@ -39,8 +39,6 @@ final class CoinJoinMixingTxSet: GroupedTransactions, TransactionWrapper {
private let amountLock = NSLock()
private var _amount: Int64 = 0
override var amount: Int64 {
amountLock.lock()
defer { amountLock.unlock() }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read is atomic anyway

@Syn-McJ Syn-McJ changed the base branch from feat/coinjoin to develop February 13, 2025 07:56
Copy link
Contributor

@pankcuf pankcuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Syn-McJ Syn-McJ merged commit 0364417 into dashpay:develop Feb 18, 2025
1 check passed
@Syn-McJ Syn-McJ deleted the fix/coinjoin-deadlock branch February 18, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants