jackpal/Taipei-Torrent — pull request #29 by rakoo (2014-01-11 21:09:09+00:00)
Title: Add default bitfield for new peerstates

By default, a new peer has no pieces, so it doesn't send a BITFIELD. Only when it has some (or all) pieces does it send a BITFIELD. In the current implementation we only build peerstates' have when receiving BITFIELD. This fix makes sure there is always a have by default.