Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server/swap: avoid deadlock with maker redeem ack #2021

Merged
merged 1 commit into from
Jan 11, 2023

Commits on Jan 2, 2023

  1. server/swap: avoid deadlock with maker redeem ack

    When deleting a match after receiving the maker's redeem ack (of the
    taker's redeem), do not violate established lock ordering of
    Swapper.matchMtx and matchTracker.mtx.  This deals with the matchMtx
    prior to locking the matchTracker, avoiding a possible deadlock with
    another goroutine locking these.
    chappjc committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    97d340a View commit details
    Browse the repository at this point in the history