Fix wrong request handling in fastsync client
When a server is disconnected, add the current request to request queue
so that it can be requested later.
@@ -232,6 +232,7 @@ func (cl *client) onLeave(id module.PeerID) {
fr.validPeers = fr.validPeers[:last]
if p.f != nil {
p.f.cancel()
+ fr.heightSet.add(p.f.height)
fr.nActivePeers--
fr._reschedule()
}
