Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: 77e1af792bbfb7cfc1cb4e642c86c37da2fc7d51
      
https://github.com/conformal/btcd/commit/77e1af792bbfb7cfc1cb4e642c86c37da2fc7d51
  Author: Josh Rickmar <[email protected]>
  Date:   2013-11-11 (Mon, 11 Nov 2013)

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  Fix mutex handling for removing minedtx requests.

Previously, RemoveMinedTxRequest was being run from a caller which
held a reader lock for the websocket request contexts.  When
RemoveMinedTxRequest tried to grab a writer lock, it would block.
This change creates a new function, removeMinedTxRequest, that does
not grab any locks, and the caller (NotifyBlockConnected) grabs a
writer lock instead of a reader lock.



Reply via email to