bitcoin/bitcoin — pull request #1094 by jgarzik (2012-04-13 22:26:50+00:00)
Title: Locking fix for AlreadyHave()

Access to mapTransactions[] must be guarded by cs_mapTransactions lock.

Also, reformat long lines to make the switch statement more readable.