conformal/btcd — pull request #115 by decred (2014-03-19 22:05:38+00:00)
Title: Bugfix for issue #101 draft 0.1

This is a bugfix for the race caused when a peer tried to write and read to p.versionKnown concurrently.

To correct this, a new mutex and two functions were added for locking and subsequently reading or writing the state of versionKnown.